{"id":40862,"date":"2026-03-06T22:03:46","date_gmt":"2026-03-06T20:03:46","guid":{"rendered":"https:\/\/livres-alie.fr\/Boutique\/?page_id=40862"},"modified":"2026-03-06T22:13:57","modified_gmt":"2026-03-06T20:13:57","slug":"recommandation-par-age","status":"publish","type":"page","link":"https:\/\/livres-alie.fr\/Boutique\/recommandation-par-age\/","title":{"rendered":"Recommandation par age"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"40862\" class=\"elementor elementor-40862\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-1cf005c elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"1cf005c\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-c4a4b7d\" data-id=\"c4a4b7d\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-122f972 elementor-widget elementor-widget-shortcode\" data-id=\"122f972\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"shortcode.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-shortcode\">        <div class=\"alm-age-reco\"\n             data-limit=\"24\"\n             data-columns=\"4\"\n             data-exclude=\"carnet,coeurs-decoratifs,bougie,livresque,coffrets-coffrets-cadeau,lampes-de-lecture,the-infusion,tote-bag\"\n             data-nonce=\"6de1c06bd0\">\n\n            <div class=\"alm-age-filters\" style=\"margin-bottom:16px;\">\n                <div class=\"alm-age-row\" style=\"display:flex;flex-wrap:wrap;gap:8px;margin-bottom:10px;\">\n                    <button type=\"button\" class=\"alm-age-btn is-active\" data-age=\"\">Tous<\/button>\n                                            <button type=\"button\" class=\"alm-age-btn\" data-age=\"adulte\">\n                            Adulte                        <\/button>\n                                            <button type=\"button\" class=\"alm-age-btn\" data-age=\"new-adult-18\">\n                            New Adult (18+)                        <\/button>\n                                            <button type=\"button\" class=\"alm-age-btn\" data-age=\"young-adult-14\">\n                            Young Adult (14+)                        <\/button>\n                                    <\/div>\n                <div class=\"alm-age-row\" style=\"display:flex;flex-wrap:wrap;gap:8px;\">\n                    <button type=\"button\" class=\"alm-genre-btn is-active\" data-genre=\"\">Tous les genres<\/button>\n                                            <button type=\"button\" class=\"alm-genre-btn\" data-genre=\"dark-academia\">\n                            Dark Acad\u00e9mia                        <\/button>\n                                            <button type=\"button\" class=\"alm-genre-btn\" data-genre=\"dark-romance\">\n                            Dark Romance                        <\/button>\n                                            <button type=\"button\" class=\"alm-genre-btn\" data-genre=\"distopie\">\n                            Distopie                        <\/button>\n                                            <button type=\"button\" class=\"alm-genre-btn\" data-genre=\"marque-page\">\n                            Marque-page                        <\/button>\n                                            <button type=\"button\" class=\"alm-genre-btn\" data-genre=\"new-romance\">\n                            New Romance                        <\/button>\n                                            <button type=\"button\" class=\"alm-genre-btn\" data-genre=\"romantasy\">\n                            Romantasy                        <\/button>\n                                    <\/div>\n            <\/div>\n\n            <div class=\"alm-age-results\">\n                <p>Aucun livre ne correspond \u00e0 ce filtre.<\/p>            <\/div>\n        <\/div>\n\n        <style>\n        .alm-age-reco .alm-age-btn,\n        .alm-age-reco .alm-genre-btn {\n            padding:8px 16px; border:1px solid #d6b15a; border-radius:20px;\n            background:transparent; color:#d6b15a; cursor:pointer; font-size:.9rem;\n            transition: all .15s;\n        }\n        .alm-age-reco .alm-age-btn:hover,\n        .alm-age-reco .alm-genre-btn:hover { background:rgba(214,177,90,.15); }\n        .alm-age-reco .alm-age-btn.is-active,\n        .alm-age-reco .alm-genre-btn.is-active { background:#d6b15a; color:#0b0b08; }\n        .alm-age-reco .alm-age-results.is-loading { opacity:.5; pointer-events:none; }\n        <\/style>\n\n        <script>\n        (function(){\n            var root=document.currentScript.previousElementSibling;\n            if(!root)return;\n            var res=root.querySelector('.alm-age-results'),\n                ageBtns=root.querySelectorAll('.alm-age-btn'),\n                genreBtns=root.querySelectorAll('.alm-genre-btn'),\n                currentAge='',currentGenre='';\n\n            function setActive(btns,val){\n                btns.forEach(function(b){b.classList.toggle('is-active',(b.dataset.age||b.dataset.genre||'')===(val||''))});\n            }\n            function load(){\n                res.classList.add('is-loading');\n                var body=new URLSearchParams();\n                body.set('action','alm_age_filter');\n                body.set('nonce',root.dataset.nonce);\n                body.set('age',currentAge);\n                body.set('genre',currentGenre);\n                body.set('limit',root.dataset.limit);\n                body.set('columns',root.dataset.columns);\n                body.set('exclude_cat',root.dataset.exclude||'');\n                fetch('https:\/\/livres-alie.fr\/Boutique\/wp-admin\/admin-ajax.php',{\n                    method:'POST',\n                    headers:{'Content-Type':'application\/x-www-form-urlencoded;charset=UTF-8'},\n                    body:body\n                }).then(function(r){return r.text()}).then(function(h){\n                    res.innerHTML=h;res.classList.remove('is-loading');\n                });\n            }\n            ageBtns.forEach(function(btn){\n                btn.addEventListener('click',function(){currentAge=btn.dataset.age||'';setActive(ageBtns,currentAge);load()});\n            });\n            genreBtns.forEach(function(btn){\n                btn.addEventListener('click',function(){currentGenre=btn.dataset.genre||'';setActive(genreBtns,currentGenre);load()});\n            });\n        })();\n        <\/script>\n        <\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<\/div>\n\t\t\n    <div class=\"xs_social_share_widget xs_share_url after_content \t\tmain_content  wslu-style-1 wslu-share-box-shaped wslu-fill-colored wslu-none wslu-share-horizontal wslu-theme-font-no wslu-main_content\">\n\n\t\t\n        <ul>\n\t\t\t        <\/ul>\n    <\/div> \n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-40862","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/livres-alie.fr\/Boutique\/wp-json\/wp\/v2\/pages\/40862","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/livres-alie.fr\/Boutique\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/livres-alie.fr\/Boutique\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/livres-alie.fr\/Boutique\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/livres-alie.fr\/Boutique\/wp-json\/wp\/v2\/comments?post=40862"}],"version-history":[{"count":7,"href":"https:\/\/livres-alie.fr\/Boutique\/wp-json\/wp\/v2\/pages\/40862\/revisions"}],"predecessor-version":[{"id":40871,"href":"https:\/\/livres-alie.fr\/Boutique\/wp-json\/wp\/v2\/pages\/40862\/revisions\/40871"}],"wp:attachment":[{"href":"https:\/\/livres-alie.fr\/Boutique\/wp-json\/wp\/v2\/media?parent=40862"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}