/* ==========================================================================
   Nafas Bio — page de vente, variante 2

   Mise en page de fiche produit : galerie à gauche, bloc d'achat à droite sur
   ordinateur, une seule colonne sur mobile. Chargée uniquement par
   template-home2.php, elle ne pèse donc pas sur la page d'accueil.

   Préfixe « nb2- » pour ne croiser aucune règle de style.css, dont cette page
   réutilise malgré tout quelques briques (.nb-review, .nb-err, .nb-error…).
   ========================================================================== */

/* Déclarées sur :root et non sur .nb2 : l'en-tête, le pied de page et la barre
   fixe sont en dehors du <main>, ils n'hériteraient donc d'aucune couleur. */
:root{
  --c-bg:#FAF7F0;
  --c-alt:#F3EFE4;
  --c-ink:#0B1F04;
  --c-body:#42513B;
  --c-muted:#5B6B52;
  --c-green:#7DBD07;
  --c-green-hi:#8FD40D;
  --c-deep:#3C6B1E;
  --c-dark:#2A4F13;
  --c-line:rgba(11,31,4,.12);
  --c-sale:#B3441E;
  --r:18px;
  --wrap:1180px;
}

/* ---------- Bandeau et en-tête ---------- */
.nb2-topbar{
  background:var(--c-dark);color:#F2F7EA;text-align:center;
  font-size:13px;padding:9px 14px;line-height:1.4;
}
.nb2-header{
  background:var(--c-bg);border-bottom:1px solid var(--c-line);
  position:sticky;top:0;z-index:40;
}
.nb2-header__in{
  max-width:var(--wrap);margin:0 auto;padding:11px 16px;
  display:flex;align-items:center;justify-content:space-between;gap:12px;
}
.nb2-nav{display:none;gap:22px;font-size:14.5px;font-weight:500}
.nb2-nav a{color:var(--c-body)}
.nb2-nav a:hover{color:var(--c-deep)}
.nb2-brand{display:flex;align-items:center;gap:10px;color:inherit;min-width:0}
.nb2-brand img{flex:none}
.nb2-brand strong,.nb2-brand small{white-space:nowrap}
.nb2-brand strong{display:block;font-size:15px;letter-spacing:.14em;color:var(--c-ink);line-height:1.1}
.nb2-brand small{display:block;font-size:8.5px;letter-spacing:.2em;color:var(--c-muted);margin-top:3px}
.nb2-tools{display:flex;align-items:center;gap:8px;flex:none}
.nb2-tools__wa{
  width:40px;height:40px;border-radius:50%;border:1px solid var(--c-line);
  display:flex;align-items:center;justify-content:center;color:var(--c-deep);
}
.nb2-tools__wa:hover{border-color:var(--c-green);color:var(--c-deep)}
.nb2-tools__wa svg{width:20px;height:20px;fill:currentColor}
.nb2-lang{display:flex;align-items:center;border:1px solid var(--c-line);border-radius:999px;overflow:hidden;font-size:13px;font-weight:600}
.nb2-lang .is-on{background:var(--c-dark);color:#F2F7EA;padding:8px 13px}
.nb2-lang a{padding:8px 13px;color:var(--c-body)}

/* ---------- Ossature ---------- */
.nb2{background:var(--c-bg);color:var(--c-body);font-size:16px;line-height:1.6}
.nb2 > section{
  max-width:var(--wrap);margin:0 auto;padding:30px 18px;
  border-bottom:1px solid var(--c-line);
}
/* Tous les titres de section partagent police et taille. */
.nb2-h2,.nb2-serif{font-size:clamp(21px,2.6vw,28px);line-height:1.3;font-weight:700;
  color:var(--c-ink);margin:0 0 10px;font-family:inherit}
.nb2-serif{text-align:center;margin-bottom:26px}
.nb2-serif em{font-style:normal;color:var(--c-deep)}
.nb2-h2--center{text-align:center}
/* En ligne et non en bloc : un bloc en dir="rtl" se collerait au bord droit,
   loin du titre français qu'il accompagne. */
.nb2-h2 span[lang="ar"]{font-family:Cairo,system-ui,sans-serif;font-size:.82em}
.nb2-lede{font-size:15.5px;color:var(--c-muted);margin:0 0 18px}
.nb2-lede--center{text-align:center;max-width:52ch;margin-left:auto;margin-right:auto}
.nb2-micro{font-size:13px;color:var(--c-muted);text-align:center;margin:10px 0 0}

/* ==========================================================================
   Bienfaits, ingrédients et certifications

   Repris de la maquette fournie par la direction (exports Desktop / Tablette /
   Mobile). Les valeurs — colonnes, diamètres des pastilles, tailles de titre —
   sont celles des trois artboards : 5 et 6 colonnes sur ordinateur, 3 sur
   tablette, 2 sur mobile.
   ========================================================================== */
.nb2-nat{text-align:center}

[dir="rtl"] 
[dir="rtl"] 
/* Filets décoratifs de part et d'autre du titre. */
.nb2-serif--rule{display:flex;align-items:center;justify-content:center;gap:clamp(14px,3vw,30px)}
.nb2-serif--rule::before,.nb2-serif--rule::after{
  content:"";height:1px;background:#D4B37A;flex:0 1 clamp(40px,12vw,150px);
}

.nb2-nat__grid,.nb2-ing__grid{
  list-style:none;margin:0 0 46px;padding:0;
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
  gap:26px 14px;
}
.nb2-nat__grid li,.nb2-ing__grid li{
  display:flex;flex-direction:column;align-items:center;gap:10px;min-width:0;
}
.nb2-nat__grid b,.nb2-ing__grid b{
  font-size:15px;font-weight:700;color:#12301F;line-height:1.3;
}
.nb2-nat__grid small,.nb2-ing__grid small{
  font-size:13.5px;color:#5E5B55;line-height:1.45;
}

.nb2-nat__ico{
  width:64px;height:64px;border-radius:50%;background:var(--c-deep);
  display:flex;align-items:center;justify-content:center;flex:none;
}
.nb2-nat__ico svg{width:70%;height:70%}

.nb2-ing__img{
  width:136px;height:136px;border-radius:50%;overflow:hidden;flex:none;
  border:2px solid #D4B37A;background:var(--c-alt);
}
.nb2-ing__img img{width:100%;height:100%;object-fit:cover;display:block}

.nb2-certs{display:flex;align-items:center;justify-content:center;gap:clamp(20px,6vw,54px);flex-wrap:wrap}
.nb2-certs img{width:clamp(96px,22vw,150px);height:auto}

/* Tablette : trois colonnes, pastilles intermédiaires. */
@media (min-width:600px){
  .nb2-nat__grid,.nb2-ing__grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:34px 20px}
  .nb2-nat__ico{width:96px;height:96px}
  .nb2-ing__img{width:168px;height:168px}
  .nb2-nat__grid b,.nb2-ing__grid b{font-size:16px}
  .nb2-nat__grid small,.nb2-ing__grid small{font-size:14px}
}

/* Ordinateur : cinq bienfaits sur une ligne, six ingrédients sur une ligne. */
@media (min-width:1000px){
  .nb2-nat__grid{grid-template-columns:repeat(5,minmax(0,1fr))}
  .nb2-ing__grid{grid-template-columns:repeat(6,minmax(0,1fr))}
  .nb2-nat__grid,.nb2-ing__grid{gap:40px 24px;margin-bottom:64px}
  .nb2-nat__ico{width:112px;height:112px}
  .nb2-ing__img{width:180px;height:180px}
  .nb2-nat__grid b,.nb2-ing__grid b{font-size:17px}
  .nb2-nat__grid small,.nb2-ing__grid small{font-size:15px}
  
}

/* ---------- Mise en avant ---------- */
.nb2-feature__img{border-radius:var(--r);overflow:hidden;aspect-ratio:1/1;background:var(--c-alt)}
.nb2-feature__img img{width:100%;height:100%;object-fit:cover;display:block}

/* Le carrousel d'avis vient de style.css, où il déborde volontairement des
   marges de la page d'accueil. Cette page a son propre rythme : on annule
   ce débordement, sinon il dépasse de 2 px sur mobile. */
.nb2-avis .nb-reviews{margin-inline:0;padding-inline:0}

/* ---------- Comparaison : visuel et tableau sur une rangée ---------- */
.nb2-duo{display:grid;gap:34px}
.nb2-duo > *{min-width:0}
.nb2-vs{text-align:center}

/* ---------- Packs ---------- */
.nb2-order__in{max-width:640px;margin:0 auto}
.nb2-order__grid{display:grid;gap:22px}
.nb2-order__grid > *{min-width:0}
.nb2-packs{display:flex;flex-direction:column;gap:11px;margin-bottom:18px}
.nb2-pack{
  display:grid;grid-template-columns:62px 1fr auto;align-items:center;gap:12px;
  background:#fff;border:2px solid var(--c-line);border-radius:16px;padding:11px 13px;
  cursor:pointer;position:relative;transition:border-color .16s ease,background .16s ease;
}
.nb2-pack:hover{border-color:var(--c-green)}
.nb2-pack.is-on{border-color:var(--c-green);background:#F6FBEC}
.nb2-pack input{position:absolute;opacity:0;width:0;height:0}
.nb2-pack img{width:62px;height:62px;object-fit:cover;border-radius:11px;background:var(--c-alt)}
.nb2-pack__txt{min-width:0}
.nb2-pack__txt b{display:block;font-size:15.5px;color:var(--c-ink);font-weight:700;line-height:1.3}
.nb2-pack__txt b i{font-style:normal;font-weight:500;color:var(--c-muted);font-size:14px}
.nb2-pack__tag,.nb2-pack__save{
  display:inline-block;margin-top:5px;font-size:11.5px;font-weight:700;
  padding:3px 9px;border-radius:999px;letter-spacing:.02em;
}
.nb2-pack__tag{background:#E6F2CF;color:var(--c-dark)}
.nb2-pack__save{background:var(--c-sale);color:#fff}
.nb2-pack__price{text-align:end;line-height:1.25}
.nb2-pack__price s{display:block;font-size:12.5px;color:var(--c-muted)}
.nb2-pack__price strong{font-size:17px;font-weight:800;color:var(--c-ink);white-space:nowrap}

/* ---------- Récapitulatif ---------- */
.nb2-recap{background:var(--c-alt);border-radius:var(--r);padding:15px 17px;margin-bottom:20px}
.nb2-recap__row{display:flex;justify-content:space-between;gap:14px;font-size:15px;padding:6px 0}
/* Une règle d'auteur l'emporte sur le display:none du navigateur : sans cela,
   la ligne de remise resterait visible malgré l'attribut hidden. */
.nb2-recap__row[hidden]{display:none}
.nb2-recap__row b{font-weight:700;color:var(--c-ink)}
.nb2-recap__row--total{border-top:1px solid var(--c-line);margin-top:6px;padding-top:12px;font-size:16.5px}
.nb2-recap__row--total b{font-size:21px}
.nb2-neg{color:var(--c-sale)!important}
.nb2-free{color:var(--c-deep)!important}

/* ---------- Boutons ---------- */
.nb2-cta{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  background:var(--c-green);color:var(--c-ink);font-weight:700;font-size:17px;
  border:0;border-radius:999px;padding:16px 30px;min-height:56px;cursor:pointer;
  text-align:center;line-height:1.25;transition:background .18s ease;
}
.nb2-cta:hover{background:var(--c-green-hi);color:var(--c-ink)}
.nb2-cta--block{display:flex;width:100%}
.nb2-cta--center{display:flex;width:fit-content;margin:0 auto}
.nb2-cta[disabled]{opacity:.65;cursor:default}

/* ---------- Formulaire ---------- */
.nb2-field{display:block;margin-bottom:14px;font-size:14.5px;font-weight:600;color:var(--c-ink)}
.nb2-field i{color:var(--c-sale);font-style:normal}
.nb2-input{display:flex;align-items:stretch;margin-top:6px;border:1px solid var(--c-line);border-radius:12px;background:#fff;overflow:hidden}
.nb2-input svg{
  width:44px;flex:none;padding:0 11px;background:var(--c-alt);box-sizing:border-box;
  fill:none;stroke:var(--c-muted);stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;
}
.nb2-input input,.nb2-input select{
  flex:1;min-width:0;border:0;background:none;padding:14px 13px;font:inherit;font-weight:500;
  color:var(--c-ink);min-height:52px;
}
.nb2-input input:focus,.nb2-input select:focus{outline:2px solid var(--c-green);outline-offset:-2px}
.nb2-input input[aria-invalid="true"]{background:#FFF8F6}
.nb2-consent{display:flex;gap:11px;align-items:flex-start;margin:16px 0;font-size:13.5px;color:var(--c-muted);line-height:1.5}
.nb2-consent input{width:21px;height:21px;flex:none;margin-top:1px;accent-color:var(--c-deep)}

.nb2-or{display:flex;align-items:center;gap:12px;margin:20px 0;color:var(--c-muted);font-size:14px}
.nb2-or::before,.nb2-or::after{content:"";flex:1;height:1px;background:var(--c-line)}
.nb2-wa{
  display:flex;align-items:center;justify-content:center;gap:9px;width:100%;
  background:#25D366;color:#06310F;font-weight:700;font-size:16.5px;
  border-radius:999px;padding:15px 22px;min-height:54px;
}
.nb2-wa:hover{background:#1FBE5A;color:#06310F}
.nb2-wa svg{width:21px;height:21px;fill:currentColor}

/* ---------- Confirmation ---------- */
.nb2-done{text-align:center;background:#F6FBEC;border:1px solid var(--c-green);border-radius:var(--r);padding:26px 20px;margin-bottom:18px}
.nb2-done > span{
  display:inline-flex;width:58px;height:58px;border-radius:50%;background:rgba(125,189,7,.2);
  align-items:center;justify-content:center;font-size:27px;color:var(--c-deep);
}
.nb2-done h3{font-size:22px;font-weight:700;color:var(--c-ink);margin:14px 0 8px}
.nb2-done p{margin:0;font-size:15.5px}
.nb2-done__ref{margin-top:10px!important;font-size:14px!important}

/* ---------- Comparatif ---------- */
.nb2-table{
  width:100%;max-width:700px;margin:0 auto 22px;
  border-collapse:separate;border-spacing:0;font-size:14.5px;
}
.nb2-table th,.nb2-table td{padding:12px 10px;text-align:center;border-bottom:1px solid var(--c-line)}
.nb2-table thead th{font-size:14px;font-weight:700;color:var(--c-ink);background:var(--c-alt)}
.nb2-table thead th:nth-child(2){background:var(--c-dark);color:#F2F7EA;border-radius:12px 12px 0 0}
.nb2-table tbody th{text-align:start;font-weight:600;color:var(--c-ink);font-size:14px}
.nb2-table td:nth-child(2){background:rgba(125,189,7,.09)}
.nb2-table tbody tr:last-child td:nth-child(2){border-radius:0 0 12px 12px}
.nb2-yes{color:var(--c-deep);font-size:19px;font-weight:700}
.nb2-no{color:#C96A6A;font-size:17px}

/* ---------- Pied de page ---------- */
.nb2-footer{background:var(--c-dark);color:#DCE9CC;text-align:center}
.nb2-footer__in{max-width:var(--wrap);margin:0 auto;padding:34px 20px 120px}
/* L'image est en display:block (règle globale du thème) : text-align n'a
   donc aucun effet sur elle, il faut des marges automatiques. */
.nb2-footer img{width:150px;height:auto;margin:0 auto 10px}
.nb2-footer p{margin:0 0 16px;font-size:14.5px}
.nb2-footer nav{display:flex;flex-wrap:wrap;justify-content:center;gap:9px 18px;margin-bottom:18px}
.nb2-footer a{color:#DCE9CC;font-size:14px;text-decoration:underline;text-underline-offset:3px}
.nb2-footer a:hover{color:#fff}
.nb2-footer__c{font-size:12.5px;opacity:.75;margin:0}

/* ---------- WhatsApp flottant ---------- */
/* Propriétés logiques : le bouton passe à gauche sur la version arabe. */
.nb2-float-wa{
  position:fixed;inset-block-end:86px;inset-inline-end:16px;z-index:55;
  width:56px;height:56px;border-radius:50%;background:#25D366;color:#fff;
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 10px 24px -8px rgba(11,31,4,.45);
  transition:transform .18s ease;
}
.nb2-float-wa:hover{background:#1FBE5A;color:#fff;transform:scale(1.06)}
.nb2-float-wa svg{width:30px;height:30px;fill:currentColor}

@media (prefers-reduced-motion:reduce){
  .nb2-float-wa{transition:none}
  .nb2-float-wa:hover{transform:none}
}

/* ---------- Barre fixe (mobile) ---------- */
.nb2-sticky{
  position:fixed;left:0;right:0;bottom:0;z-index:50;
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  background:#fff;border-top:1px solid var(--c-line);padding:10px 14px;
  box-shadow:0 -10px 26px -18px rgba(11,31,4,.6);
}
.nb2-sticky small{display:block;font-size:12px;color:var(--c-muted)}
.nb2-sticky strong{font-size:18px;font-weight:800;color:var(--c-ink)}
.nb2-sticky a{
  background:var(--c-green);color:var(--c-ink);font-weight:700;font-size:16px;
  border-radius:999px;padding:13px 26px;min-height:50px;display:flex;align-items:center;
}
.nb2-sticky a:hover{background:var(--c-green-hi);color:var(--c-ink)}

/* ==========================================================================
   Ordinateur : deux colonnes, menu visible, barre fixe inutile
   ========================================================================== */
@media (min-width:900px){
  .nb2-nav{display:flex}
  .nb2-header__in{display:grid;grid-template-columns:1fr auto 1fr;gap:14px;padding:11px 18px}
  .nb2-brand{justify-self:center}
  .nb2-tools{justify-self:end}

  .nb2 > section{padding:46px 24px}

  .nb2-duo{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:48px;align-items:center}
  /* Le tableau vient en premier dans le document, pour l'ordre mobile voulu ;
     sur ordinateur l'image reprend sa place à gauche. */
  .nb2-duo .nb2-feature{order:-1}

  /* Offres et récapitulatif à gauche, formulaire à droite : le bloc occupe
     alors la largeur de la page au lieu d'une colonne étroite au centre. */
  .nb2-order__in{max-width:none}
  .nb2-order__grid{grid-template-columns:minmax(0,1fr) minmax(0,1.05fr);gap:40px;align-items:start}

  .nb2-float-wa{inset-block-end:26px;inset-inline-end:26px}

  .nb2-footer__in{padding-bottom:40px}
  .nb2-sticky{display:none}
}
