/* Nido — démonstration de boutique en ligne (ZataLabs, V7.4). */
:root { --fond: #0b0d12; --carte: #141821; --ligne: #252b38; --texte: #e9edf5; --doux: #8b94a7; --cyan: #66e3ff; --rose: #ff6fb5; }
*, *::before, *::after { box-sizing: border-box; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
body { margin: 0; background: var(--fond); color: var(--texte); font: 400 16px/1.55 "Space Grotesk", system-ui, sans-serif; }
h1, h2, h3 { font-weight: 700; margin: 0 0 .5em; line-height: 1.1; letter-spacing: -.02em; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
code, .mono { font-family: "JetBrains Mono", monospace; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

.entete { display: flex; align-items: center; gap: 1.5rem; padding: 1rem clamp(1rem, 4vw, 3rem); border-bottom: 1px solid var(--ligne); }
.logo { font: 700 1.6rem/1 "JetBrains Mono", monospace; text-decoration: none; }
.logo span { color: var(--cyan); animation: clignote 1s steps(1) infinite; }
@keyframes clignote { 50% { opacity: 0; } }
.entete__promo { margin: 0 auto 0 0; font-size: .9rem; color: var(--doux); }
.entete__promo code { color: var(--cyan); }
@media (max-width: 600px) { .entete__promo { display: none; } .entete { justify-content: space-between; } }
.panier-bouton { padding: .55rem 1rem; border: 1px solid var(--ligne); border-radius: 10px; background: var(--carte); cursor: pointer; }
.panier-bouton b { color: var(--cyan); margin-left: .3rem; }

.intro { padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1rem, 4vw, 3rem) 1.5rem; }
.intro h1 { font-size: clamp(2.2rem, 5.5vw, 4rem); }
.intro h1 span { background: linear-gradient(90deg, var(--cyan), var(--rose)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.intro p { color: var(--doux); }
.grille { list-style: none; margin: 0; padding: 0 clamp(1rem, 4vw, 3rem) 6rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; }
.produit { display: grid; gap: .8rem; padding: 1.1rem; border: 1px solid var(--ligne); border-radius: 18px; background: var(--carte); transition: border-color .2s, transform .2s; }
.produit:hover { border-color: #3a4356; transform: translateY(-3px); }
.produit.is-compare { border-color: var(--cyan); }
.produit__visuel { display: grid; place-items: center; height: 160px; border-radius: 12px; background: radial-gradient(circle, #1d2433, #10141c); }
.produit__visuel svg { height: 80%; }
.produit h3 { font-size: 1.1rem; margin: 0; }
.produit .specs { margin: 0; padding: 0; list-style: none; font-size: .85rem; color: var(--doux); }
.produit__bas { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.produit__bas b { font-size: 1.3rem; }
.stock { font-size: .78rem; font-family: "JetBrains Mono", monospace; }
.stock--bas { color: var(--rose); }
.stock--ok { color: #7ee2a8; }
.comparer-case { display: flex; align-items: center; gap: .4rem; font-size: .88rem; color: var(--doux); cursor: pointer; }
.comparer-case input { accent-color: var(--cyan); }
.ajouter { padding: .55rem .9rem; border: 0; border-radius: 10px; background: var(--cyan); color: #04121a; font-weight: 700; cursor: pointer; }

.comparer { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); display: flex; align-items: center; gap: 1rem; padding: .8rem 1rem .8rem 1.3rem; border: 1px solid var(--cyan); border-radius: 14px; background: #0f141d; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); z-index: 20; }
/* display: flex l'emporterait sur l'attribut hidden. */
.comparer[hidden] { display: none; }
.comparer button { padding: .5rem .9rem; border: 0; border-radius: 8px; background: var(--cyan); color: #04121a; font-weight: 700; cursor: pointer; }
.comparer .lien { background: none; color: var(--doux); text-decoration: underline; }
.modale { width: min(94vw, 860px); padding: 1.5rem; border: 1px solid var(--ligne); border-radius: 18px; background: var(--carte); color: var(--texte); }
.modale::backdrop { background: rgba(0, 0, 0, .65); }
.defile { overflow-x: auto; }
#compTable { width: 100%; border-collapse: collapse; min-width: 480px; }
#compTable th, #compTable td { padding: .7rem; border-bottom: 1px solid var(--ligne); text-align: left; vertical-align: top; }
#compTable th[scope="row"] { color: var(--doux); font-weight: 500; }
#compTable .meilleur { color: var(--cyan); font-weight: 700; }
.bouton { margin-top: 1rem; padding: .7rem 1.2rem; border: 0; border-radius: 10px; background: var(--texte); color: var(--fond); font-weight: 700; cursor: pointer; }
.bouton--plein { width: 100%; background: var(--cyan); color: #04121a; }

.panier { position: fixed; top: 0; right: 0; bottom: 0; width: min(100vw, 380px); z-index: 30; padding: 1.4rem; overflow-y: auto; background: #10141c; border-left: 1px solid var(--ligne); }
.panier h2 { font-size: 1.4rem; }
#lignes { list-style: none; margin: 0 0 1rem; padding: 0; }
#lignes li { display: flex; justify-content: space-between; gap: .5rem; padding: .6rem 0; border-bottom: 1px solid var(--ligne); font-size: .92rem; }
#lignes button { border: 0; background: none; color: var(--doux); cursor: pointer; text-decoration: underline; }
.code label { font-size: .85rem; color: var(--doux); }
.code div { display: flex; gap: .4rem; margin-top: .3rem; }
.code input { flex: 1; min-width: 0; padding: .6rem; border: 1px solid var(--ligne); border-radius: 8px; background: var(--fond); font-family: "JetBrains Mono", monospace; text-transform: uppercase; }
.code button { padding: .6rem .8rem; border: 1px solid var(--ligne); border-radius: 8px; background: var(--carte); cursor: pointer; }
#codeRetour { min-height: 1.2em; margin: .3rem 0 0; font-size: .85rem; }
#codeRetour.ok { color: #7ee2a8; }
#codeRetour.ko { color: var(--rose); }
.panier dl { display: grid; gap: .3rem; margin: 1rem 0; }
.panier dl div { display: flex; justify-content: space-between; }
.panier dd { margin: 0; }
.panier .total { font-size: 1.2rem; font-weight: 700; }
#retour { min-height: 1em; font-size: .88rem; }
.pied { padding: 1.5rem; text-align: center; color: var(--doux); font-size: .88rem; border-top: 1px solid var(--ligne); }
