🎨 Thèmes completsGratuit · 0 NahnahPar NAHNAH
Thème Bistronomie
Gastronomique et éditorial sur fond vert nuit : héros cloche qui se soulève, menu dégustation par temps, carrousel Ken Burns, avis note géante, footer spotlight.
Aperçu en direct
Données de démonstration (produits, menus, textes d’exemple) : dans ta boutique, ce sont les tiennes.
Photos : Unsplash / Pexels (exemples de l’aperçu, jamais inclus dans le code).
Code à copier
Fichier complet sections/theme-bistronomie.liquid (Liquid, CSS et JS inclus).
<div class="nn-theme-compose" data-theme="theme-bistronomie">
<!-- Section : header-ilot-flottant -->
<header class="nn-hi"><a class="nn-hi__logo" href="/">{{ shop.name }}</a><nav>{% for l in linklists[section.settings.menu].links %}<a href="{{ l.url }}">{{ l.title }}</a>{% endfor %}</nav><a class="nn-hi__cta" href="{{ section.settings.lien }}">{{ section.settings.bouton }}</a></header>
<!-- Section : heros-cloche-gastro -->
<section class="nn-cg">
<div class="nn-cg__scene"><img src="{{ section.settings.photo | default: 'https://images.unsplash.com/photo-1414235077428-338989a2e8c0?w=900&q=80' }}" alt="Assiette du chef" class="nn-cg__assiette" loading="lazy"><div class="nn-cg__cloche"><i></i></div></div>
<div class="nn-cg__texte"><span>{{ section.settings.sur | default: "Menu dégustation · 7 temps" }}</span><h1>{{ section.settings.titre | default: "La saison, dressée à l'assiette" }}</h1><svg viewBox="0 0 300 10" class="nn-cg__ligne"><path d="M0 5 H300"/></svg><a href="{{ section.settings.lien | default: '/collections/all' }}" class="nn-cg__btn">{{ section.settings.bouton | default: "Découvrir le menu" }}</a></div>
</section>
<!-- Section : fiche-menu-degustation -->
<section class="nn-md" data-prix="{{ section.settings.prix | default: 85 }}">
<h2>{{ section.settings.titre | default: "Le menu, temps par temps" }}</h2>
<ol class="nn-md__frise"><li class="est-actif" data-p="Amuse-bouche" data-d="Gougère au comté, crème de cèpes">1</li><li data-p="Entrée" data-d="Saint-Jacques snackées, céleri et noisette">2</li><li data-p="Poisson" data-d="Bar de ligne, beurre blanc au yuzu">3</li><li data-p="Viande" data-d="Pigeon rôti, jus corsé, betterave">4</li><li data-p="Fromage" data-d="Sélection affinée de nos producteurs">5</li><li data-p="Pré-dessert" data-d="Granité pomme verte et basilic">6</li><li data-p="Dessert" data-d="Chocolat grand cru, sarrasin torréfié">7</li></ol>
<div class="nn-md__plat"><span class="nn-md__etape">Amuse-bouche</span><p class="nn-md__desc">Gougère au comté, crème de cèpes</p></div>
<div class="nn-md__bas"><label><input type="checkbox" class="nn-md__vin"> Accord mets et vins (+45 €)</label><p>Total : <b class="nn-md__total">85 €</b> par personne</p></div>
</section>
<!-- Section : carrousel-ken-burns -->
{%- comment -%} NAHNAH AI · Diaporama zoom lent façon cinéma (bibliothèque Sections & effets) {%- endcomment -%}
<div class="nn-carrousel-ken-burns" style="--nn-mh: {{ section.settings.marge_haut }}px; --nn-mb: {{ section.settings.marge_bas }}px; --nn-fond: {{ section.settings.couleur_fond }}; --nn-texte: {{ section.settings.couleur_texte }}; --nn-accent: {{ section.settings.couleur_accent }}; --nn-duree: {{ section.settings.duree }}s; --nn-h: {{ section.settings.hauteur }}px;" data-duree="{{ section.settings.duree }}">
<div class="nn-carrousel-ken-burns__scene" role="group" aria-roledescription="carrousel" aria-label="Diaporama">
{%- for block in section.blocks -%}
<div class="nn-carrousel-ken-burns__diapo{% if forloop.first %} nn-carrousel-ken-burns__diapo--active{% endif %}" style="--nn-i: {{ forloop.index0 }};" data-nn-diapo {{ block.shopify_attributes }}>
<span class="nn-carrousel-ken-burns__image">{%- if block.settings.image != blank -%}{{ block.settings.image | image_url: width: 1800 | image_tag: loading: 'lazy', alt: block.settings.titre, sizes: '100vw' }}{%- endif -%}</span>
<div class="nn-carrousel-ken-burns__texte">
<h2><span>{{ block.settings.titre | escape }}</span></h2>
{%- if block.settings.texte != blank -%}<p><span>{{ block.settings.texte | escape }}</span></p>{%- endif -%}
{%- if block.settings.lien != blank and block.settings.bouton != blank -%}<a href="{{ block.settings.lien }}">{{ block.settings.bouton | escape }}</a>{%- endif -%}
</div>
</div>
{%- endfor -%}
<div class="nn-carrousel-ken-burns__commandes">
<span class="nn-carrousel-ken-burns__points">{%- for block in section.blocks -%}<button type="button" data-nn-point="{{ forloop.index0 }}" aria-label="Image {{ forloop.index }}"{% if forloop.first %} aria-current="true"{% endif %}><i></i></button>{%- endfor -%}</span>
<button type="button" class="nn-carrousel-ken-burns__pause" data-nn-pause aria-pressed="false" aria-label="Mettre en pause">❚❚</button>
</div>
</div>
</div>
<!-- Section : avis-note-geante -->
<section class="nn-ng" data-note="{{ section.settings.note }}"><div class="nn-ng__gauche"><div class="nn-ng__chiffre">0,0</div><div class="nn-ng__etoiles">★★★★★</div><p>{{ section.settings.nombre }} avis vérifiés</p></div>
<div class="nn-ng__barres">{% assign parts = '82,12,4,1,1' | split: ',' %}{% for p in parts %}<div class="nn-ng__ligne"><span>{{ 6 | minus: forloop.index }} ★</span><div><i style="--p:{{ p }}%"></i></div><span>{{ p }} %</span></div>{% endfor %}</div></section>
<!-- Section : footer-spotlight -->
<footer class="nn-fm nn-fm--spotlight" style="--a:{{ section.settings.accent }}"><div class="nn-fm__spot"></div>
<div class="nn-fm__in"><div class="nn-fm__marque"><b>{{ section.settings.nom }}</b><p>{{ section.settings.accroche }}</p><p class="nn-fm__note"><span>★★★★★</span> 4,9/5 · 2 300 avis</p></div>
<nav class="nn-fm__liens">{% for l in section.settings.menu.links %}<a href="{{ l.url }}">{{ l.title }}</a>{% else %}<a href="/collections/all">Boutique</a><a href="/collections/all">Nouveautés</a><a href="/pages/contact">Contact</a><a href="/policies/shipping-policy">Livraison</a><a href="/policies/refund-policy">Retours</a>{% endfor %}</nav>
<form class="nn-fm__nl" method="post" action="/contact#contact_form"><input type="hidden" name="form_type" value="customer"><input type="hidden" name="contact[tags]" value="newsletter"><input type="email" name="contact[email]" placeholder="Ton e-mail pour -10 %" required><button type="submit">OK</button></form></div>
<p class="nn-fm__bas">© {{ 'now' | date: '%Y' }} {{ shop.name }} · Paiement sécurisé · Livraison 48 h</p></footer>
</div>
{% schema %}{"name":"Thème Bistronomie","settings":[]}{% endschema %}
{% stylesheet %}
/* header-ilot-flottant */
.nn-hi{position:fixed;top:14px;left:50%;transform:translateX(-50%);z-index:50;display:flex;align-items:center;gap:26px;padding:10px 12px 10px 22px;border-radius:999px;background:rgba(255,255,255,.7);backdrop-filter:blur(14px);border:1px solid rgba(0,0,0,.08);box-shadow:0 10px 30px rgba(0,0,0,.08);transition:padding .3s,top .3s}
.nn-hi.petit{top:6px;padding:6px 8px 6px 18px}
.nn-hi__logo{font-weight:900;color:#111;text-decoration:none}
.nn-hi nav{display:flex;gap:20px}.nn-hi nav a{color:#3f3f46;text-decoration:none;font-size:14px}.nn-hi nav a:hover{color:#111}
.nn-hi__cta{background:#111;color:#fff;padding:9px 18px;border-radius:999px;text-decoration:none;font-size:14px}
@media(max-width:749px){.nn-hi nav{display:none}}
/* heros-cloche-gastro */
.nn-cg{display:grid;grid-template-columns:1fr 1fr;gap:50px;align-items:center;min-height:600px;padding:60px 7%;background:#0e1411;color:#ece6da;font-family:"Cormorant Garamond","Georgia",serif;overflow:hidden}
.nn-cg__scene{position:relative;width:min(380px,85vw);aspect-ratio:1;justify-self:center}
.nn-cg__assiette{width:100%;height:100%;object-fit:cover;border-radius:50%;box-shadow:0 0 0 14px #ece6da,0 30px 60px rgba(0,0,0,.6)}
.nn-cg__cloche{position:absolute;inset:-6% -6% 30%;border-radius:50% 50% 8px 8px/100% 100% 8px 8px;background:linear-gradient(120deg,#8d9196,#f2f3f5 35%,#9ea3a8 60%,#dcdfe2);box-shadow:0 20px 40px rgba(0,0,0,.5);transform-origin:90% 100%;animation:nnCgSouleve 1.6s .6s cubic-bezier(.6,0,.2,1) forwards}
.nn-cg__cloche i{position:absolute;top:-22px;left:50%;width:36px;height:24px;margin-left:-18px;border-radius:50% 50% 4px 4px;background:#c9ccd0}
@keyframes nnCgSouleve{60%{transform:translate(20%,-40%) rotate(18deg)}100%{transform:translate(70%,-80%) rotate(30deg);opacity:0}}
.nn-cg__texte span{font-family:"Inter",sans-serif;font-size:12px;letter-spacing:.35em;text-transform:uppercase;color:#c9a96e}
.nn-cg h1{font-weight:300;font-size:clamp(40px,6vw,82px);line-height:1;margin:16px 0}
.nn-cg__ligne{width:200px;height:10px;fill:none;stroke:#c9a96e;stroke-width:2;stroke-dasharray:300;stroke-dashoffset:300;animation:nnCgLigne 1.4s 1.8s ease forwards}
@keyframes nnCgLigne{to{stroke-dashoffset:0}}
.nn-cg__btn{display:inline-block;margin-top:22px;color:#ece6da;font-family:"Inter",sans-serif;font-size:13px;letter-spacing:.25em;text-transform:uppercase;text-decoration:none;border-bottom:1px solid #c9a96e;padding-bottom:6px;transition:color .3s}
.nn-cg__btn:hover{color:#c9a96e}
@media(max-width:760px){.nn-cg{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){.nn-cg__cloche{display:none}.nn-cg__ligne{stroke-dashoffset:0;animation:none}}
/* fiche-menu-degustation */
.nn-md{padding:80px 7%;background:#ece6da;color:#0e1411;font-family:"Cormorant Garamond",serif;text-align:center}
.nn-md h2{font-weight:300;font-size:clamp(34px,5vw,58px);margin:0 0 40px}
.nn-md__frise{position:relative;display:flex;justify-content:space-between;max-width:720px;margin:0 auto;padding:0;list-style:none}
.nn-md__frise::before{content:"";position:absolute;left:0;right:0;top:50%;height:1px;background:#b5a98f}
.nn-md__frise li{position:relative;width:44px;height:44px;border-radius:50%;display:grid;place-items:center;background:#ece6da;border:1px solid #b5a98f;font-family:"Inter",sans-serif;cursor:pointer;transition:background .3s,color .3s,transform .3s}
.nn-md__frise li.est-actif{background:#0e1411;color:#c9a96e;transform:scale(1.2)}
.nn-md__plat{min-height:120px;margin:40px auto 10px;max-width:560px}
.nn-md__etape{font-family:"Inter",sans-serif;font-size:12px;letter-spacing:.35em;text-transform:uppercase;color:#8a6d3b}
.nn-md__desc{font-size:clamp(24px,3vw,36px);font-style:italic;margin:12px 0;animation:nnMdFondu .6s ease}
@keyframes nnMdFondu{from{opacity:0;transform:translateY(10px);filter:blur(4px)}}
.nn-md__bas{font-family:"Inter",sans-serif;display:grid;gap:8px;justify-items:center}
.nn-md__total{font-family:"Cormorant Garamond",serif;font-size:32px}
@media(prefers-reduced-motion:reduce){.nn-md__desc{animation:none}}
/* carrousel-ken-burns */
.nn-carrousel-ken-burns { padding: var(--nn-mh) 0 var(--nn-mb); background: var(--nn-fond); color: var(--nn-texte); }
.nn-carrousel-ken-burns__scene { position: relative; height: var(--nn-h); overflow: hidden; }
.nn-carrousel-ken-burns__diapo { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 1.2s ease, visibility 0s 1.2s; }
.nn-carrousel-ken-burns__diapo--active { opacity: 1; visibility: visible; transition: opacity 1.2s ease; }
.nn-carrousel-ken-burns__image { position: absolute; inset: 0; background: linear-gradient(135deg, #2B2B2B, #000000); }
.nn-carrousel-ken-burns__image img { display: block; width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); }
.nn-carrousel-ken-burns__diapo--active .nn-carrousel-ken-burns__image img { animation: nn-carrousel-ken-burns-zoom calc(var(--nn-duree) + 1.5s) linear both; }
.nn-carrousel-ken-burns__diapo:nth-child(even).nn-carrousel-ken-burns__diapo--active .nn-carrousel-ken-burns__image img { animation-name: nn-carrousel-ken-burns-zoom-2; }
.nn-carrousel-ken-burns__image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, 0.65), transparent 65%); }
.nn-carrousel-ken-burns__texte { position: absolute; left: max(16px, calc(50% - 580px)); bottom: 70px; z-index: 2; max-width: 560px; padding-right: 16px; }
.nn-carrousel-ken-burns__texte h2 { margin: 0 0 10px; overflow: hidden; font-size: clamp(30px, 5vw, 60px); line-height: 1.05; }
.nn-carrousel-ken-burns__texte p { margin: 0 0 18px; overflow: hidden; font-size: 18px; opacity: 0.9; }
.nn-carrousel-ken-burns__texte h2 span, .nn-carrousel-ken-burns__texte p span { display: inline-block; transform: translateY(105%); }
.nn-carrousel-ken-burns__diapo--active .nn-carrousel-ken-burns__texte h2 span { animation: nn-carrousel-ken-burns-monte 0.9s 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.nn-carrousel-ken-burns__diapo--active .nn-carrousel-ken-burns__texte p span { animation: nn-carrousel-ken-burns-monte 0.9s 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.nn-carrousel-ken-burns__texte a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 24px; border-radius: 999px; background: var(--nn-accent); color: #000000; font-weight: 800; text-decoration: none; }
.nn-carrousel-ken-burns__commandes { position: absolute; left: max(16px, calc(50% - 580px)); bottom: 20px; z-index: 3; display: flex; align-items: center; gap: 12px; }
.nn-carrousel-ken-burns__points { display: flex; gap: 6px; }
.nn-carrousel-ken-burns__points button { width: 44px; height: 30px; padding: 0; border: 0; background: none; cursor: pointer; }
.nn-carrousel-ken-burns__points i { display: block; height: 3px; overflow: hidden; border-radius: 3px; background: rgba(255, 255, 255, 0.35); position: relative; }
.nn-carrousel-ken-burns__points i::after { content: ""; position: absolute; inset: 0; background: #FFFFFF; transform-origin: left; transform: scaleX(0); }
.nn-carrousel-ken-burns__points [aria-current] i::after { animation: nn-carrousel-ken-burns-progres var(--nn-duree) linear both; }
.nn-carrousel-ken-burns--pause .nn-carrousel-ken-burns__points [aria-current] i::after, .nn-carrousel-ken-burns--pause .nn-carrousel-ken-burns__image img { animation-play-state: paused; }
.nn-carrousel-ken-burns__pause { width: 40px; height: 40px; border: 1px solid rgba(255, 255, 255, 0.45); border-radius: 50%; background: rgba(0, 0, 0, 0.3); color: #FFFFFF; font-size: 12px; cursor: pointer; }
.nn-carrousel-ken-burns button:focus-visible, .nn-carrousel-ken-burns a:focus-visible { outline: 2px solid var(--nn-accent); outline-offset: 2px; }
@keyframes nn-carrousel-ken-burns-zoom { from { transform: scale(1.02) translate(0, 0); } to { transform: scale(1.18) translate(-2%, -1%); } }
@keyframes nn-carrousel-ken-burns-zoom-2 { from { transform: scale(1.18) translate(2%, 1%); } to { transform: scale(1.03) translate(0, 0); } }
@keyframes nn-carrousel-ken-burns-monte { to { transform: none; } }
@keyframes nn-carrousel-ken-burns-progres { to { transform: scaleX(1); } }
@media (max-width: 749px) { .nn-carrousel-ken-burns__scene { height: min(var(--nn-h), 520px); } .nn-carrousel-ken-burns__texte { bottom: 64px; } }
@media (prefers-reduced-motion: reduce) {
.nn-carrousel-ken-burns *, .nn-carrousel-ken-burns *::before, .nn-carrousel-ken-burns *::after { animation: none !important; transition: none !important; }
.nn-carrousel-ken-burns__texte h2 span, .nn-carrousel-ken-burns__texte p span { transform: none; }
}
/* avis-note-geante */
.nn-ng{display:flex;flex-wrap:wrap;gap:50px;align-items:center;justify-content:center;padding:60px 5vw;background:#ffffff}
.nn-ng__chiffre{font-size:96px;font-weight:800;color:#111111;line-height:1}
.nn-ng__etoiles{color:#f59e0b;font-size:28px;letter-spacing:4px}
.nn-ng__barres{flex:1;min-width:260px;max-width:460px}
.nn-ng__ligne{display:grid;grid-template-columns:40px 1fr 46px;gap:10px;align-items:center;margin:8px 0;color:#52525b;font-size:14px}
.nn-ng__ligne div{height:10px;border-radius:99px;background:#f4f4f5;overflow:hidden}
.nn-ng__ligne i{display:block;height:100%;width:0;background:#f59e0b;border-radius:99px;transition:width 1.4s cubic-bezier(.2,.8,.2,1)}
.nn-ng.vu .nn-ng__ligne i{width:var(--p)}
/* footer-spotlight */
.nn-fm{position:relative;overflow:hidden;padding:70px 5vw 22px;font-family:inherit}
.nn-fm__in{position:relative;z-index:2;display:grid;grid-template-columns:1.3fr 1fr 1.2fr;gap:36px;max-width:1200px;margin:0 auto;align-items:start}
.nn-fm__marque b{font-size:30px;letter-spacing:-.02em}.nn-fm__marque p{opacity:.75;margin:8px 0}
.nn-fm__note span{color:#f59e0b;letter-spacing:2px}
.nn-fm__liens{display:grid;grid-template-columns:1fr 1fr;gap:10px 20px}
.nn-fm__liens a{color:inherit;opacity:.8;text-decoration:none;transition:opacity .2s,transform .2s}.nn-fm__liens a:hover{opacity:1;transform:translateX(4px)}
.nn-fm__nl{display:flex;gap:8px}.nn-fm__nl input{flex:1;min-width:0;padding:14px 16px;border-radius:12px;border:1px solid rgba(127,127,127,.35);background:rgba(127,127,127,.08);color:inherit;font:inherit}
.nn-fm__nl button{padding:0 20px;border:0;border-radius:12px;background:var(--a);color:#ffffff;font-weight:700;cursor:pointer;transition:transform .2s}.nn-fm__nl button:hover{transform:scale(1.06)}
.nn-fm__bas{position:relative;z-index:2;text-align:center;opacity:.55;font-size:13px;margin:40px 0 0}
@media(max-width:749px){.nn-fm__in{grid-template-columns:1fr}}.nn-fm--spotlight{background:#0a0a0a;color:#fafafa}.nn-fm__spot{position:absolute;inset:0;background-image:radial-gradient(#3f3f46 1px,transparent 1px);background-size:22px 22px;-webkit-mask-image:radial-gradient(260px at var(--x,50%) var(--y,50%),#000,transparent);mask-image:radial-gradient(260px at var(--x,50%) var(--y,50%),#000,transparent)}
.nn-fm--spotlight::before{content:"";position:absolute;inset:0;background:radial-gradient(400px at var(--x,50%) var(--y,50%),rgba(245,158,11,.15),transparent)}
{% endstylesheet %}
{% javascript %}
/* header-ilot-flottant */
// Rétrécit le header au scroll
document.querySelectorAll('.nn-hi').forEach(function(h){addEventListener('scroll',function(){h.classList.toggle('petit',scrollY>40)},{passive:true})});
// Aperçu seulement (html[data-nn-demo], jamais posé en boutique) : l'îlot se resserre puis s'élargit comme au défilement
if(document.documentElement.hasAttribute('data-nn-demo'))setInterval(function(){document.querySelectorAll('.nn-hi').forEach(function(h){h.classList.toggle('petit');});},1800);
/* heros-cloche-gastro */
/* Aucun script requis */
/* fiche-menu-degustation */
document.querySelectorAll('.nn-md').forEach(function(s){var base=parseFloat(s.dataset.prix)||85,desc=s.querySelector('.nn-md__desc'),i=0,items=s.querySelectorAll('.nn-md__frise li'),auto;function va(li){items.forEach(function(x){x.classList.toggle('est-actif',x===li)});s.querySelector('.nn-md__etape').textContent=li.dataset.p;desc.textContent=li.dataset.d;desc.style.animation='none';void desc.offsetWidth;desc.style.animation='';}items.forEach(function(li,k){li.addEventListener('click',function(){clearInterval(auto);i=k;va(li);});});auto=setInterval(function(){i=(i+1)%items.length;va(items[i]);},3500);s.querySelector('.nn-md__vin').addEventListener('change',function(e){s.querySelector('.nn-md__total').textContent=(base+(e.target.checked?45:0))+' €';});});
/* carrousel-ken-burns */
(function () {
var reduit = window.matchMedia && window.matchMedia("(prefers-reduced-motion: reduce)").matches;
function brancher(racine) {
if (racine.dataset.nnPret) return;
racine.dataset.nnPret = "1";
var diapos = [].slice.call(racine.querySelectorAll("[data-nn-diapo]")), points = [].slice.call(racine.querySelectorAll("[data-nn-point]")), bp = racine.querySelector("[data-nn-pause]");
if (diapos.length < 1) return;
var k = 0, duree = (+racine.getAttribute("data-duree") || 6) * 1000, t = null, pause = reduit;
function aller(i) {
k = (i + diapos.length) % diapos.length;
diapos.forEach(function (d, j) { d.classList.toggle("nn-carrousel-ken-burns__diapo--active", j === k); });
points.forEach(function (p, j) { if (j === k) p.setAttribute("aria-current", "true"); else p.removeAttribute("aria-current"); });
relancer();
}
function relancer() { clearTimeout(t); if (!pause && diapos.length > 1) t = setTimeout(function () { aller(k + 1); }, duree); }
points.forEach(function (p, j) { p.addEventListener("click", function () { aller(j); }); });
function maj() { racine.classList.toggle("nn-carrousel-ken-burns--pause", pause); bp.setAttribute("aria-pressed", pause ? "true" : "false"); bp.setAttribute("aria-label", pause ? "Reprendre" : "Mettre en pause"); bp.textContent = pause ? "▶" : "❚❚"; }
bp.addEventListener("click", function () { pause = !pause; maj(); relancer(); });
maj(); relancer();
}
function tout() { document.querySelectorAll(".nn-carrousel-ken-burns").forEach(brancher); }
tout();
document.addEventListener("shopify:section:load", tout);
})();
/* avis-note-geante */
// Note géante : compteur et barres au moment où le bloc apparaît
document.querySelectorAll('.nn-ng').forEach(function(s){var n=parseFloat(s.dataset.note)||4.9,c=s.querySelector('.nn-ng__chiffre');
new IntersectionObserver(function(e,o){if(!e[0].isIntersecting)return;o.disconnect();s.classList.add('vu');var t0=performance.now();
(function f(t){var p=Math.min(1,(t-t0)/1400);c.textContent=(n*p).toFixed(1).replace('.',',');if(p<1)requestAnimationFrame(f);})(t0);}).observe(s);});
/* footer-spotlight */
// Projecteur : suit la souris
document.querySelectorAll('.nn-fm--spotlight').forEach(function(f){f.addEventListener('mousemove',function(e){var r=f.getBoundingClientRect();f.style.setProperty('--x',e.clientX-r.left+'px');f.style.setProperty('--y',e.clientY-r.top+'px');});});
{% endjavascript %}
Licence NAHNAH AI : utilisation libre dans tes boutiques (y compris commerciales), modification permise, revente de l’élément seul interdite.
Prompt à copier
À coller dans Claude ou ChatGPT avec le fichier téléchargé (ou le code copié) : l’assistant t’aide à l’installer et à l’adapter à ta marque.
Tu es un expert des thèmes Shopify Online Store 2.0. Aide-moi à installer puis à adapter à ma marque cet élément gratuit de la bibliothèque NAHNAH AI.
Élément : « Thème Bistronomie » (Thèmes complets)
Description : Gastronomique et éditorial sur fond vert nuit : héros cloche qui se soulève, menu dégustation par temps, carrousel Ken Burns, avis note géante, footer spotlight.
Page de l’élément (aperçu en direct) : https://ai.nahnah.shop/bibliotheque-shopify/theme-bistronomie
Fichier : nahnah-theme-bistronomie.liquid (bouton « Télécharger » de la page) ou le code copié avec le bouton « Copier » : je te le joins ou je le colle après ce message.
Emplacement dans le thème : sections/theme-bistronomie.liquid (Liquid, puis {% stylesheet %} et {% javascript %}, dans ce seul fichier).
Étapes d’installation :
1. Dans Shopify : Boutique en ligne → Thèmes → bouton « … » du thème → Modifier le code.
2. Dossier « sections » → « Ajouter une section » (ou « Nouveau fichier ») → nomme-la « theme-bistronomie ».
3. Efface le contenu proposé, colle le code de l’onglet Liquid (fichier complet), puis Enregistrer.
4. Ouvre Personnaliser → Ajouter une section → choisis-la, règle les textes et les couleurs, puis Enregistrer.
Ce que j’attends de toi :
- Guide-moi pas à pas dans Shopify : Boutique en ligne → Thèmes → « … » → Modifier le code → dossier sections → Ajouter une section, puis Personnaliser → Ajouter une section.
- Propose-moi d’adapter les couleurs, les textes et les liens à ma marque : demande d’abord mes couleurs (codes hexadécimaux), mon ton et mes liens.
- Garde le bloc {% schema %} et tous ses réglages (identifiants, types, presets) : je dois pouvoir tout régler ensuite dans l’éditeur de thème.
- Rends-moi le fichier complet modifié, prêt à coller, sans faux avis, fausse urgence ni chiffre inventé.
Si tu as le connecteur NAHNAH AI (MCP), récupère directement le code exact avec l’outil obtenir_code_element (id : theme-bistronomie).Installer dans Shopify
- Dans Shopify : Boutique en ligne → Thèmes → bouton « … » du thème → Modifier le code.
- Dossier « sections » → « Ajouter une section » (ou « Nouveau fichier ») → nomme-la « theme-bistronomie ».
- Efface le contenu proposé, colle le code de l’onglet Liquid (fichier complet), puis Enregistrer.
- Ouvre Personnaliser → Ajouter une section → choisis-la, règle les textes et les couleurs, puis Enregistrer.
Installer via le MCP
Depuis Claude, Claude Code ou ChatGPT connecté à NAHNAH AI, demande : « Donne-moi le code de l’élément theme-bistronomie de la bibliothèque NAHNAH AI et les étapes pour l’installer ». L’assistant récupère le code et les étapes (outil obtenir_code_element), gratuitement.