/* =============================================
   LG MARKETPLACE FRONT — Styles
   Palette : --color-forest #2C4F28 / --color-accent #E67E22
             --color-leaf #4CAF50 / --color-cream #FDFBF7
   ============================================= */

/* ---------- WRAPPER ---------- */
.lgm-wrapper {
    --lgm-forest: #2C4F28;
    --lgm-leaf:   #4CAF50;
    --lgm-accent: #E67E22;
    --lgm-cream:  #FDFBF7;
    --lgm-white:  #FFFFFF;
    --lgm-text:   #333333;
    --lgm-muted:  #666666;
    --lgm-border: #E5E5E5;
    --lgm-radius: 12px;
    --lgm-shadow: 0 4px 20px rgba(0,0,0,0.05);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    max-width: 1370px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------- FILTRE BAR ---------- */
.lgm-filters {
    background: var(--lgm-white);
    border: 1px solid var(--lgm-border);
    border-radius: var(--lgm-radius);
    padding: 24px;
    margin-bottom: 30px;
    box-shadow: var(--lgm-shadow);
}
.lgm-filters-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: flex-end;
}
.lgm-filter-group {
    flex: 1;
    min-width: 180px;
}
.lgm-filter-search {
    min-width: 220px;
}
.lgm-label {
    display: block;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--lgm-forest);
    margin-bottom: 6px;
}
.lgm-input,
.lgm-select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--lgm-border);
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--lgm-text);
    background: var(--lgm-cream);
    transition: border-color 0.2s, box-shadow 0.2s;
    appearance: auto;
}
.lgm-input:focus,
.lgm-select:focus {
    outline: none;
    border-color: var(--lgm-accent);
    box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.15);
}
.lgm-filter-actions {
    display: flex;
    gap: 8px;
    min-width: auto;
    flex: 0 0 auto;
}
.lgm-btn-search {
    padding: 10px 22px;
    background: var(--lgm-accent);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    font-family: inherit;
    white-space: nowrap;
}
.lgm-btn-search:hover {
    background: #d35400;
    transform: translateY(-1px);
}
.lgm-btn-reset {
    padding: 10px 16px;
    background: none;
    color: var(--lgm-muted);
    border: 1px solid var(--lgm-border);
    border-radius: 50px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: 0.2s;
    font-family: inherit;
    white-space: nowrap;
}
.lgm-btn-reset:hover {
    border-color: var(--lgm-accent);
    color: var(--lgm-accent);
}

/* ---------- COMPTEUR ---------- */
.lgm-results-meta {
    font-size: 0.9rem;
    color: var(--lgm-muted);
    margin-bottom: 16px;
    min-height: 1.4em;
}

/* ---------- GRILLE ---------- */
.lgm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}

/* ---------- LOADER ---------- */
.lgm-loader {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--lgm-muted);
    font-size: 1rem;
}
.lgm-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid var(--lgm-border);
    border-top-color: var(--lgm-accent);
    border-radius: 50%;
    animation: lgm-spin 0.6s linear infinite;
    vertical-align: middle;
    margin-right: 8px;
}
@keyframes lgm-spin {
    to { transform: rotate(360deg); }
}

/* ---------- ÉTAT VIDE ---------- */
.lgm-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--lgm-muted);
}
.lgm-empty-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}
.lgm-empty h3 {
    font-family: 'Merriweather', Georgia, serif;
    color: var(--lgm-forest);
    margin-bottom: 10px;
}

/* =============================================
   CARTE OUTIL
   ============================================= */
.lgm-card {
    background: var(--lgm-white);
    border-radius: var(--lgm-radius);
    border: 1px solid var(--lgm-border);
    box-shadow: var(--lgm-shadow);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
    overflow: hidden;
}
.lgm-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

/* Variantes par offre */
.lgm-card--premium {
    border-color: var(--lgm-accent);
    border-width: 2px;
}
.lgm-card--avance {
    border-color: var(--lgm-leaf);
}

/* ---------- RIBBON ---------- */
.lgm-ribbon {
    position: absolute;
    top: 14px;
    right: -32px;
    background: var(--lgm-accent);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 40px;
    transform: rotate(45deg);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    z-index: 2;
}
.lgm-ribbon--avance {
    background: var(--lgm-leaf);
}

/* ---------- HEADER : Logo + nom ---------- */
.lgm-card-header {
    display: flex;
    gap: 14px;
    align-items: center;
}
.lgm-card-logo {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    object-fit: contain;
    background: var(--lgm-cream);
    border: 1px solid var(--lgm-border);
    flex-shrink: 0;
}
.lgm-card-title {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--lgm-forest);
    margin: 0;
    line-height: 1.3;
}
.lgm-card-tagline {
    font-size: 0.8rem;
    color: var(--lgm-muted);
    margin: 2px 0 0 0;
}

/* ---------- BADGES ---------- */
.lgm-card-types,
.lgm-card-certifs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.lgm-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}
.lgm-badge--type {
    background: #eef5ee;
    color: var(--lgm-forest);
}

/* Certifications */
.lgm-certif {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 600;
}
.lgm-certif small {
    font-weight: 400;
    opacity: 0.8;
}
.lgm-certif--conforme {
    background: #e8f5e9;
    color: #2e7d32;
}
.lgm-certif--excellence {
    background: #fff3e0;
    color: #e65100;
}

/* ---------- DESCRIPTION ---------- */
.lgm-card-desc {
    font-size: 0.9rem;
    color: var(--lgm-text);
    line-height: 1.6;
    margin: 0;
}

/* ---------- FONCTIONNALITÉS ---------- */
.lgm-card-features {
    list-style: none;
    padding: 0;
    margin: 0;
}
.lgm-card-features li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 6px;
    font-size: 0.88rem;
    color: #555;
}
.lgm-card-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--lgm-leaf);
    font-weight: 700;
}

/* ---------- SCORE AVIS ---------- */
.lgm-card-score {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}
.lgm-stars {
    color: #f1c40f;
    letter-spacing: 1px;
}
.lgm-score-num {
    color: var(--lgm-muted);
    font-size: 0.85rem;
}

/* ---------- CODE PROMO ---------- */
.lgm-card-promo {
    background: #fff8e1;
    border: 1px dashed #f9a825;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 0.85rem;
    color: #6d4c00;
}

/* ---------- FOOTER : Prix + CTA ---------- */
.lgm-card-footer {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--lgm-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.lgm-card-pricing {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.lgm-price-free {
    font-weight: 700;
    color: var(--lgm-leaf);
    font-size: 0.95rem;
}
.lgm-price-paid {
    font-size: 0.85rem;
    color: var(--lgm-muted);
}
.lgm-card-ctas {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* Boutons carte */
.lgm-btn {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: 0.2s;
    white-space: nowrap;
    text-align: center;
}
.lgm-btn--primary {
    background: var(--lgm-accent);
    color: white;
}
.lgm-btn--primary:hover {
    background: #d35400;
    transform: translateY(-1px);
}
.lgm-btn--outline {
    background: none;
    color: var(--lgm-forest);
    border: 1px solid var(--lgm-forest);
}
.lgm-btn--outline:hover {
    background: var(--lgm-forest);
    color: white;
}
.lgm-btn--fiche {
    background: var(--lgm-forest);
    color: white;
}
.lgm-btn--fiche:hover {
    background: #1e3a1b;
    transform: translateY(-1px);
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 768px) {
    .lgm-filters-row {
        flex-direction: column;
    }
    .lgm-filter-group {
        min-width: 100%;
    }
    .lgm-filter-actions {
        flex-direction: row;
        width: 100%;
    }
    .lgm-btn-search {
        flex: 1;
    }
    .lgm-grid {
        grid-template-columns: 1fr;
    }
    .lgm-ribbon {
        font-size: 0.6rem;
        padding: 3px 35px;
        top: 10px;
        right: -35px;
    }
}

/* =============================================
   TEMPLATE SINGLE — FICHE OUTIL
   ============================================= */

/* ---------- FIL D'ARIANE ---------- */
.lgm-breadcrumb {
    font-size: 0.85rem;
    color: var(--lgm-muted, #666);
    margin-bottom: 30px;
    padding-top: 10px;
}
.lgm-breadcrumb a {
    color: var(--lgm-forest, #2C4F28);
    text-decoration: none;
    font-weight: 500;
}
.lgm-breadcrumb a:hover {
    text-decoration: underline;
    color: var(--lgm-accent, #E67E22);
}
.lgm-breadcrumb span {
    margin: 0 6px;
    color: #bbb;
}

/* ---------- WRAPPER SINGLE ---------- */
.lgm-single {
    --lgm-forest: #2C4F28;
    --lgm-leaf:   #4CAF50;
    --lgm-accent: #E67E22;
    --lgm-cream:  #FDFBF7;
    --lgm-white:  #FFFFFF;
    --lgm-text:   #333333;
    --lgm-muted:  #666666;
    --lgm-border: #E5E5E5;
    --lgm-radius: 12px;
    --lgm-shadow: 0 4px 20px rgba(0,0,0,0.05);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    max-width: 1370px;
    margin: 0 auto 60px auto;
    padding: 30px 20px 0 20px;
}
.container::before{
	display:none;
}

/* ---------- HEADER ---------- */
.lgm-single-header {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    background: var(--lgm-white);
    border: 1px solid var(--lgm-border);
    border-radius: var(--lgm-radius);
    padding: 30px;
    box-shadow: var(--lgm-shadow);
    margin-bottom: 24px;
}
.lgm-single-logo {
    width: 100px;
    height: 100px;
    border-radius: 14px;
    object-fit: contain;
    background: var(--lgm-cream);
    border: 1px solid var(--lgm-border);
    flex-shrink: 0;
}
.lgm-single-header-right {
    flex: 1;
}
.lgm-single-meta-top {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}
.lgm-single-title {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 1.8rem;
    color: var(--lgm-forest);
    margin: 0 0 6px 0;
    line-height: 1.3;
}
.lgm-single-tagline {
    font-size: 1rem;
    color: var(--lgm-muted);
    margin: 0 0 14px 0;
}
.lgm-single-certifs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

/* Badge offre */
.lgm-offre-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.lgm-offre-badge--premium {
    background: var(--lgm-accent);
    color: white;
}
.lgm-offre-badge--avance {
    background: var(--lgm-leaf);
    color: white;
}
.lgm-offre-badge--essentiel {
    background: #eee;
    color: #555;
}

/* Actions header */
.lgm-single-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    padding-top: 16px;
    border-top: 1px solid var(--lgm-border);
}
.lgm-single-pricing {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.lgm-single-ctas {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* ---------- CODE PROMO ---------- */
.lgm-single-promo {
    background: #fff8e1;
    border: 1px dashed #f9a825;
    border-radius: var(--lgm-radius);
    padding: 14px 20px;
    font-size: 0.95rem;
    color: #6d4c00;
    text-align: center;
    margin-bottom: 24px;
}

/* ---------- BODY : 2 colonnes ---------- */
.lgm-single-body {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 30px;
    align-items: flex-start;
}

/* ---------- SECTIONS CONTENU ---------- */
.lgm-section {
    background: var(--lgm-white);
    border: 1px solid var(--lgm-border);
    border-radius: var(--lgm-radius);
    padding: 28px;
    margin-bottom: 20px;
    box-shadow: var(--lgm-shadow);
}
.lgm-section h2 {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 1.25rem;
    color: var(--lgm-forest);
    margin: 0 0 14px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--lgm-accent);
    display: inline-block;
    text-align: left;
}
.lgm-section p {
    font-size: 0.95rem;
    color: var(--lgm-text);
    line-height: 1.7;
    margin: 0 0 10px 0;
}
.lgm-wysiwyg {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--lgm-text);
}
.lgm-wysiwyg p { margin-bottom: 12px; }
.lgm-wysiwyg ul { padding-left: 20px; margin-bottom: 12px; }

/* Checklist (fonctionnalités, responsable) */
.lgm-single-checklist {
    list-style: none;
    padding: 0;
    margin: 0;
}
.lgm-single-checklist li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 10px;
    font-size: 0.95rem;
    color: #444;
    line-height: 1.5;
}
.lgm-single-checklist li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--lgm-leaf);
    font-weight: 700;
    font-size: 1.1rem;
}

/* ---------- GALERIE CAPTURES ---------- */
.lgm-gallery {
    display: grid;
    gap: 12px;
}
.lgm-gallery--1 { grid-template-columns: 1fr; }
.lgm-gallery--2 { grid-template-columns: 1fr 1fr; }
.lgm-gallery--3 { grid-template-columns: 1fr 1fr 1fr; }
.lgm-gallery--4 { grid-template-columns: 1fr 1fr; }
.lgm-gallery--5 { grid-template-columns: 1fr 1fr 1fr; }

.lgm-gallery-item {
    margin: 0;
}
.lgm-gallery-item img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid var(--lgm-border);
    transition: transform 0.2s, box-shadow 0.2s;
    display: block;
}
.lgm-gallery-item img:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* ---------- VIDÉO EMBED ---------- */
.lgm-video-embed {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--lgm-radius);
    margin-bottom: 16px;
}
.lgm-video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: var(--lgm-radius);
}

/* ---------- TÉMOIGNAGES ---------- */
.lgm-single-score {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    font-size: 1.1rem;
}
.lgm-testimonials {
    display: grid;
    gap: 16px;
}
.lgm-testimonial {
    background: var(--lgm-cream);
    border-left: 4px solid var(--lgm-accent);
    border-radius: 0 8px 8px 0;
    padding: 18px 22px;
    margin: 0;
}
.lgm-testimonial p {
    font-style: italic;
    margin: 0 0 8px 0;
    color: var(--lgm-text);
}
.lgm-testimonial footer {
    font-size: 0.85rem;
    color: var(--lgm-muted);
    font-weight: 600;
    font-style: normal;
}

/* ---------- CAS D'USAGE ---------- */
.lgm-cas-texte {
    margin-top: 16px;
}

/* ---------- SIDEBAR ---------- */
.lgm-single-sidebar {
    position: sticky;
    top: 100px;
}
.lgm-sidebar-block {
    background: var(--lgm-white);
    border: 1px solid var(--lgm-border);
    border-radius: var(--lgm-radius);
    padding: 22px;
    margin-bottom: 16px;
    box-shadow: var(--lgm-shadow);
}
.lgm-sidebar-block h3 {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 1rem;
    color: var(--lgm-forest);
    margin: 0 0 12px 0;
}
.lgm-sidebar-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.lgm-badge--public {
    background: #e3f2fd;
    color: #1565c0;
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}
.lgm-sidebar-text {
    font-size: 0.9rem;
    color: var(--lgm-muted);
    line-height: 1.6;
    margin: 0;
}

/* CTA sidebar */
.lgm-sidebar-cta {
    background: var(--lgm-cream);
    border-color: var(--lgm-accent);
    text-align: center;
}
.lgm-sidebar-cta h3 {
    text-align: center;
}
.lgm-btn--full {
    display: block;
    width: 100%;
    margin-bottom: 8px;
    text-align: center;
}
.lgm-btn--full:last-child {
    margin-bottom: 0;
}

/* Bouton téléchargement PDF */
.lgm-btn--download {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--lgm-cream);
    border: 1px solid var(--lgm-border);
    border-radius: 8px;
    color: var(--lgm-forest);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: 0.2s;
}
.lgm-btn--download:hover {
    border-color: var(--lgm-accent);
    background: #fff;
}
.lgm-btn--download small {
    color: var(--lgm-muted);
    font-weight: 400;
}

/* Retour catalogue */
.lgm-back-link {
    display: inline-block;
    color: var(--lgm-forest);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: 0.2s;
}
.lgm-back-link:hover {
    color: var(--lgm-accent);
}

/* ---------- BORDURE OFFRE SUR SINGLE ---------- */
.lgm-single--premium .lgm-single-header {
    border-color: var(--lgm-accent);
    border-width: 2px;
}
.lgm-single--avance .lgm-single-header {
    border-color: var(--lgm-leaf);
    border-width: 2px;
}

/* =============================================
   RESPONSIVE SINGLE
   ============================================= */
@media (max-width: 960px) {
    .lgm-single-body {
        grid-template-columns: 1fr;
    }
    .lgm-single-sidebar {
        position: static;
    }
}
@media (max-width: 768px) {
    .lgm-single-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .lgm-single-meta-top {
        justify-content: center;
    }
    .lgm-single-actions {
        flex-direction: column;
        align-items: center;
    }
    .lgm-single-title {
        font-size: 1.4rem;
    }
    .lgm-gallery--3,
    .lgm-gallery--5 {
        grid-template-columns: 1fr 1fr;
    }
}
