.ex3 { padding-bottom: 80px; }

/* ── HERO ───────────────────────────── */
.ex3__hero {
    background: var(--c-green-fill);
    padding: 64px 20px 56px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.ex3__hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 60% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    pointer-events: none;
}
.ex3__hero-eyebrow {
    font-size: var(--text-2xs);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0 12px;
}
.ex3__hero-title {
    font-family: var(--font-display);
    font-size: var(--text-hero);
    color: #fff;
    margin: 0 0 14px;
    line-height: 1.1;
}
.ex3__hero-sub {
    color: rgba(255, 255, 255, 0.8);
    font-size: var(--text-lg);
    margin: 0 auto;
    max-width: 520px;
}

/* ── SECTIONS ─────────────────────────────────────────────── */
.ex3__section {
    max-width: var(--page-width);
    margin: 0 auto;
    padding: 48px var(--page-gutter) 0;
}
.ex3__section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 24px;
}
.ex3__section-title {
    font-size: var(--text-2xl);
    font-weight: 600;
    margin: 0;
    color: var(--c-text);
}
.ex3__section-sub {
    font-size: var(--text-xs);
    color: var(--c-muted);
    font-weight: 500;
}
.ex3__section-link {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--c-green);
    text-decoration: none;
    white-space: nowrap;
}
.ex3__section-link:hover { text-decoration: underline; }
.ex3__section-link i { display: inline-flex; }

/* ── SÉLECTIONS : cartes en mosaïque (1 à 4 images de la sélection), ligne qui défile ── */
.ex3__sels {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 2px 2px 10px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.ex3__sels::-webkit-scrollbar { display: none; }
.ex3__sel {
    flex: 0 0 260px;
    display: flex;
    flex-direction: column;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform var(--transition), box-shadow var(--transition);
}
.ex3__sel:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.ex3__sel:focus-visible { outline: 2px solid var(--c-green); outline-offset: 2px; }
.ex3__sel-mosaic {
    display: grid;
    gap: 2px;
    height: 170px;
    background: var(--c-surface-alt);
}
.ex3__sel-mosaic img {
    width: 100%;
    height: 100%;
    min-height: 0;
    box-sizing: border-box;
    padding: 8px;
    object-fit: contain;
    background: #fff;
    display: block;
}
.ex3__sel-mosaic--1 img { padding: 14px; }
.ex3__sel-mosaic--2 { grid-template-columns: 1fr 1fr; }
.ex3__sel-mosaic--3 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.ex3__sel-mosaic--3 img:first-child { grid-row: span 2; }
.ex3__sel-mosaic--4 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.ex3__sel-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 12px 14px 14px;
}
.ex3__sel-badge {
    font-size: var(--text-2xs);
    font-weight: 600;
    color: var(--c-green);
    background: var(--c-green-light);
    padding: 4px 10px;
    border-radius: var(--radius-pill);
}
.ex3__sel-name {
    font-size: var(--text-lg);
    font-weight: 600;
    line-height: 1.2;
    margin: 2px 0 0;
    color: var(--c-text);
}
.ex3__sel-meta { font-size: var(--text-xs); color: var(--c-muted); }

/* ── EN-TÊTE DES IDÉES ─ */
.ex3__ideas-header { margin-bottom: 16px; }
.ex3__ideas-title {
    font-size: var(--text-2xl);
    font-weight: 600;
    margin: 0 0 4px;
    color: var(--c-text);
}
.ex3__ideas-sub {
    font-size: var(--text-sm);
    color: var(--c-muted);
    margin: 0;
}

/* ── FILTRES ET TRI : une seule ligne de menus déroulants ── */
.ex3__filters {
    position: relative;            /* mobile : le menu ouvert se place sous toute la ligne */
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--c-border);
}
.ex3__dd-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.ex3__dd { position: relative; }
.ex3__dd--sort { margin-left: auto; }   /* le tri à droite de la ligne */
.ex3__dd-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px 8px 16px;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-pill);
    background: var(--c-surface);
    color: var(--c-text);
    font-size: var(--text-sm);
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    list-style: none;              /* pas de triangle natif de <summary> */
    user-select: none;
    transition: border-color var(--transition), background var(--transition), color var(--transition);
}
.ex3__dd-btn::-webkit-details-marker { display: none; }
.ex3__dd-btn:hover { border-color: var(--c-green); color: var(--c-green); }
.ex3__dd-btn:focus-visible { outline: 2px solid var(--c-green); outline-offset: 2px; }
.ex3__dd-btn i { display: inline-flex; font-size: var(--text-md); transition: transform var(--transition); }
.ex3__dd[open] > .ex3__dd-btn { border-color: var(--c-green); }
.ex3__dd[open] > .ex3__dd-btn i:last-child { transform: rotate(180deg); }
.ex3__dd--sort > .ex3__dd-btn { padding-left: 14px; border-color: transparent; background: none; color: var(--c-muted); }
.ex3__dd--sort > .ex3__dd-btn:hover,
.ex3__dd--sort[open] > .ex3__dd-btn { color: var(--c-green); border-color: var(--c-border); }
/* Filtre actif : le bouton affiche le choix en cours, sur fond vert */
.ex3__dd--on > .ex3__dd-btn,
.ex3__dd--on > .ex3__dd-btn:hover { background: var(--c-green-fill); border-color: var(--c-green-fill); color: #fff; }
.ex3__dd-panel {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 30;
    width: max-content;
    min-width: 240px;
    max-width: min(460px, calc(100vw - 48px));
    box-sizing: border-box;
    padding: 14px;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}
.ex3__dd--sort .ex3__dd-panel { left: auto; right: 0; min-width: 200px; }
.ex3__dd-title {
    margin: 0 0 10px;
    font-size: var(--text-2xs);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--c-muted);
}
.ex3__dd-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.ex3__dd-options--list { flex-direction: column; align-items: stretch; gap: 6px; }
.ex3__tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    white-space: nowrap;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--c-muted);
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    transition: all var(--transition);
}
.ex3__tab:hover { border-color: var(--c-green); color: var(--c-green); }
.ex3__tab--active { background: var(--c-green-fill); color: #fff; border-color: var(--c-green-fill); }
.ex3__tab-count {
    font-size: var(--text-2xs);
    font-weight: 600;
    opacity: 0.5;
}
/* « Effacer les filtres » : sur la ligne du nombre d'idées (toujours visible, même quand la ligne de filtres défile) */
.ex3__filters-clear {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--c-green);
    text-decoration: none;
}
.ex3__filters-clear:hover { text-decoration: underline; }
.ex3__filters-clear i { display: inline-flex; }

/* ── GRILLE DES IDÉES : lignes régulières (l'ordre du tri se lit de gauche à droite) ── */
.ex3__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 16px;
}
.ex3__card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    text-decoration: none;
    color: inherit;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.ex3__card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--c-border); }
.ex3__card:focus-visible { outline: 2px solid var(--c-green); outline-offset: 2px; }
.ex3__card-img {
    position: relative;
    aspect-ratio: 1 / 1;
    background: #fff;
    overflow: hidden;
}
.ex3__card-img img {
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    padding: 12px;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease;
}
.ex3__card:hover .ex3__card-img img { transform: scale(1.04); }
.ex3__card-fav {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: var(--radius-pill);
    background: var(--c-danger-bg);
    color: var(--c-danger);
    font-size: var(--text-2xs);
    font-weight: 600;
}
.ex3__card-fav i { display: inline-flex; }
.ex3__card-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    padding: 10px 12px 12px;
    border-top: 1px solid var(--c-border);
}
.ex3__card-name {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--c-text);
    margin: 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ex3__card-foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: auto; min-width: 0; }
.ex3__card-price { font-size: var(--text-sm); font-weight: 600; color: var(--c-green); white-space: nowrap; }
.ex3__card-source { min-width: 0; font-size: var(--text-2xs); color: var(--c-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── PAGES ── */
.ex3__pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 32px;
}
.ex3__pager-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 40px;
    height: 40px;
    box-sizing: border-box;
    padding: 0 12px;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-pill);
    background: var(--c-surface);
    color: var(--c-text);
    font-size: var(--text-sm);
    font-weight: 600;
    text-decoration: none;
    transition: border-color var(--transition), color var(--transition);
}
a.ex3__pager-link:hover { border-color: var(--c-green); color: var(--c-green); }
.ex3__pager-link i { display: inline-flex; }
.ex3__pager-link--on { background: var(--c-green-fill); border-color: var(--c-green-fill); color: #fff; }
.ex3__pager-gap { color: var(--c-muted); padding: 0 2px; }

/* ── APPEL À CRÉER SA LISTE (visiteurs) ── */
.ex3__cta {
    width: min(var(--page-width), 100% - 2 * var(--page-gutter));
    box-sizing: border-box;
    margin: 56px auto 0;
    padding: 36px 24px;
    border-radius: var(--radius-lg);
    background: var(--c-green-light);
    text-align: center;
}
.ex3__cta-title {
    font-family: var(--font-display);
    font-size: var(--text-title);
    color: var(--c-green);
    margin: 0 0 8px;
}
.ex3__cta-text { max-width: 560px; margin: 0 auto 20px; color: var(--c-muted); font-size: var(--text-lg); line-height: 1.5; }

/* ── PAGE D'UNE SÉLECTION ── */
.ex3__sel-hero {
    background: var(--c-green-fill);
    color: #fff;
    padding: 36px var(--page-gutter) 40px;
}
.ex3__sel-hero-inner { max-width: var(--page-width); margin: 0 auto; }
.ex3__crumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 20px;
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.6);
}
.ex3__crumbs a { color: rgba(255, 255, 255, 0.8); text-decoration: none; }
.ex3__crumbs a:hover { color: #fff; text-decoration: underline; }
.ex3__sel-hero-badge {
    display: inline-block;
    margin-bottom: 10px;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-size: var(--text-xs);
    font-weight: 600;
}
.ex3__sel-hero-title {
    font-family: var(--font-display);
    font-size: var(--text-hero);
    line-height: 1.1;
    margin: 0 0 12px;
}
.ex3__sel-hero-text { max-width: 640px; margin: 0 0 12px; font-size: var(--text-lg); line-height: 1.5; color: rgba(255, 255, 255, 0.8); }
.ex3__sel-hero-meta { margin: 0; font-size: var(--text-sm); color: rgba(255, 255, 255, 0.6); }
.ex3__preview-note {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 14px;
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    background: var(--c-gold-light);
    color: var(--c-text);
    font-size: var(--text-sm);
    font-weight: 600;
}

/* ── FICHE D'UNE IDÉE (complète idea.css) ── */
.ex3-item__image { object-fit: contain; box-sizing: border-box; padding: 24px; background: #fff; }
.ex3-item__admin {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin: -12px 0 20px;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    background: var(--c-gold-light);
    color: var(--c-text);
    font-size: var(--text-sm);
}
.ex3-item__admin a { color: inherit; font-weight: 600; }
.ex3-item__price-note { margin: 6px 0 0; font-size: var(--text-xs); color: var(--c-muted); }
.ex3-item__alert {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    background: var(--c-gold-light);
    color: var(--c-text);
    font-size: var(--text-sm);
    line-height: 1.5;
}
.ex3-item__alert i { display: inline-flex; margin-top: 2px; }
.ex3-item__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.ex3-item__affiliate { margin: -8px 0 0; font-size: var(--text-xs); color: var(--c-muted); }
.ex3-item__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.ex3-item__tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-pill);
    background: var(--c-surface);
    color: var(--c-text);
    font-size: var(--text-sm);
    font-weight: 500;
    text-decoration: none;
    transition: border-color var(--transition), color var(--transition);
}
.ex3-item__tag:hover { border-color: var(--c-green); color: var(--c-green); }
.ex3-item__sels { display: flex; flex-wrap: wrap; gap: 8px; }
.ex3-item__sel {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: var(--radius-md);
    background: var(--c-green-light);
    color: var(--c-green);
    font-size: var(--text-sm);
    font-weight: 600;
    text-decoration: none;
}
.ex3-item__sel:hover { text-decoration: underline; }
.ex3-item__sel i { display: inline-flex; }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 640px) {
    .ex3__section { padding-top: 36px; }
    .ex3__sels { margin-inline: calc(-1 * var(--page-gutter)); padding-inline: var(--page-gutter); scroll-padding-inline: var(--page-gutter); }
    .ex3__sel { flex-basis: 220px; }
    .ex3__sel-mosaic { height: 150px; }
    .ex3__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .ex3__card-img img { padding: 8px; }
    .ex3__card-body { padding: 8px 10px 10px; }
    .ex3__cta { padding: 28px 20px; }
    .ex3__sel-hero { padding-top: 28px; padding-bottom: 32px; }

    /* La ligne de filtres défile d'un bord à l'autre de l'écran ; le menu ouvert prend toute la largeur
       sous la ligne (positionné par rapport à .ex3__filters, il n'est pas coupé par le défilement de la ligne) */
    .ex3__dd-row {
        flex-wrap: nowrap;
        overflow-x: auto;
        margin-inline: calc(-1 * var(--page-gutter));   /* marges de .ex3__section */
        padding: 2px var(--page-gutter);
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }
    .ex3__dd-row::-webkit-scrollbar { display: none; }
    .ex3__dd { position: static; flex-shrink: 0; }
    .ex3__dd-panel,
    .ex3__dd--sort .ex3__dd-panel {
        top: calc(100% - 6px);
        left: 0;
        right: 0;
        width: auto;
        min-width: 0;
        max-width: none;
    }

    .ex3-item__actions { flex-direction: column; }
    .ex3-item__actions .btn { width: 100%; box-sizing: border-box; white-space: normal; line-height: 1.2; text-align: center; }
}
