/*
 * RU Boutique : habillage clair (theme blanc, rouge et noir).
 * Charge uniquement sur les 5 pages boutique (voir le loader).
 * Ne colore que l'habillage RU et le bloc FluentCart qu'il enveloppe :
 * aucune autre partie du site n'est touchee.
 */

.bou-wrap{
  --red:#E8261A;
  --red-dark:#B71C12;
  --ink:#0A0A0A;
  --paper:#FFFFFF;
  --paper2:#F7F7F8;
  --line:#E4E4E7;
  --muted:#6B6B70;
  width:100%;
  overflow-x:hidden;
  background:var(--paper);
  color:var(--ink);
}

/* Le gabarit remplace le theme : fond blanc net. */
html, body.bou-standalone{
  background:#FFFFFF;
  color:#0A0A0A;
  font-family:'Barlow', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  overflow-x:hidden;
  min-height:100%;
  width:100%;
}
*, *::before, *::after{ box-sizing:border-box; }
#wpadminbar{ position:fixed !important; }

/* ==================== BARRE HAUT ==================== */
.bou-topbar{
  position:sticky; top:0; z-index:999;
  width:100%; min-height:64px;
  background:#FFFFFF;
  border-bottom:2px solid var(--red);
  display:flex; align-items:center;
  padding:0 24px; gap:16px;
  animation:bou-drop .5s ease both;
}
.bou-logo-wrap{ display:flex; align-items:center; gap:10px; text-decoration:none; flex:1; }
.bou-logo-img{ height:36px; width:auto; display:block; object-fit:contain; }

.bou-topbar-nav{ display:flex; align-items:center; gap:6px; }
.bou-topbar-nav a{
  font-family:'IBM Plex Mono', monospace; font-size:10px; font-weight:700;
  letter-spacing:.16em; text-transform:uppercase;
  color:var(--ink); text-decoration:none;
  padding:7px 12px; border-radius:4px; position:relative;
  transition:color .15s;
}
.bou-topbar-nav a::after{
  content:''; position:absolute; left:12px; right:100%; bottom:2px;
  height:2px; background:var(--red); transition:right .22s ease;
}
.bou-topbar-nav a:hover, .bou-topbar-nav a.active{ color:var(--red); }
.bou-topbar-nav a:hover::after, .bou-topbar-nav a.active::after{ right:12px; }

.bou-topbar-btn{
  font-family:'IBM Plex Mono', monospace; font-size:10px; font-weight:700;
  letter-spacing:.14em; text-transform:uppercase;
  background:var(--red); color:#fff;
  padding:9px 16px; border-radius:5px;
  text-decoration:none; flex-shrink:0;
  box-shadow:0 6px 16px rgba(232,38,26,.22);
  transition:background .15s, transform .15s;
}
.bou-topbar-btn:hover{ background:var(--red-dark); color:#fff; transform:translateY(-2px); }
.bou-cart-icon{ font-size:12px; }

/* ==================== HERO (boutique) ==================== */
.bou-hero{
  position:relative; width:100%;
  padding:52px 24px 40px;
  background:#FFFFFF;
  overflow:hidden;
  animation:bou-in .55s .04s ease both;
}
.bou-hero::before{
  content:''; position:absolute; right:-60px; top:50%; transform:translateY(-50%);
  width:280px; height:280px; pointer-events:none; opacity:.06;
  background:radial-gradient(circle at center, var(--red) 0, transparent 62%);
}
.bou-hero-inner{ position:relative; z-index:2; max-width:1100px; margin:0 auto; }
.bou-hero-tag{
  font-family:'IBM Plex Mono', monospace; font-size:11px; letter-spacing:.3em;
  text-transform:uppercase; color:var(--red);
  display:flex; align-items:center; gap:12px; margin-bottom:14px;
}
.bou-hero-tag::before{ content:''; display:block; width:26px; height:2px; background:var(--red); }
.bou-hero-h1{
  font-family:'Anton', 'Oswald', sans-serif;
  font-size:clamp(46px, 8vw, 78px);
  line-height:.9; letter-spacing:.01em; color:var(--ink); margin-bottom:14px;
}
.bou-hero-h1 .slash{ color:var(--red); }
.bou-hero-sub{
  font-family:'Oswald', sans-serif; font-size:clamp(13px, 1.7vw, 15px);
  font-weight:300; letter-spacing:.16em; text-transform:uppercase; color:var(--muted);
}
.bou-hero-bar{
  width:100%; height:3px; margin-top:38px; border-radius:2px;
  background:linear-gradient(90deg, var(--red), rgba(232,38,26,.15), transparent);
  transform-origin:left; animation:bou-grow .7s .12s ease both;
}

/* ==================== ENTETE DE PAGE (compte, panier, paiement, recu) ==================== */
.bou-page-head{
  width:100%; background:#FFFFFF;
  padding:40px 24px 26px; border-bottom:1px solid var(--line);
  animation:bou-in .55s .04s ease both;
}
.bou-page-head-inner{ max-width:1100px; margin:0 auto; }
.bou-page-tag{
  font-family:'IBM Plex Mono', monospace; font-size:11px; letter-spacing:.3em;
  text-transform:uppercase; color:var(--red);
  display:flex; align-items:center; gap:12px; margin-bottom:10px;
}
.bou-page-tag::before{ content:''; display:block; width:26px; height:2px; background:var(--red); }
.bou-page-h1{
  font-family:'Anton', 'Oswald', sans-serif;
  font-size:clamp(30px, 5vw, 46px);
  line-height:.95; letter-spacing:.01em; color:var(--ink);
}
.bou-page-h1 .slash{ color:var(--red); display:inline-block; animation:bou-blink 1.6s steps(1) infinite; }

/* ==================== SECTION CONTENU ==================== */
.bou-content-section, .bou-shop-section{
  width:100%; background:#FFFFFF; padding:34px 24px 72px;
}
.bou-content-inner, .bou-shop-inner{ max-width:1100px; margin:0 auto; }
.bou-section-label{ display:flex; align-items:center; gap:14px; margin-bottom:24px; }
.bou-section-label span{
  font-family:'IBM Plex Mono', monospace; font-size:10px; font-weight:700;
  letter-spacing:.26em; text-transform:uppercase; color:var(--red);
}
.bou-section-label::after{
  content:''; flex:1; height:2px;
  background:linear-gradient(90deg, rgba(232,38,26,.28), transparent);
}

/* Cadre qui enveloppe FluentCart */
.bou-fluent-box, .bou-fluent-products{
  background:#FFFFFF;
  border:1px solid var(--line);
  border-top:3px solid var(--red);
  border-radius:0 0 12px 12px;
  padding:30px;
  box-shadow:0 10px 30px rgba(10,10,10,.06);
  animation:bou-in .55s .16s ease both;
}

/* ==================== HABILLAGE FLUENTCART (variables + secours) ==================== */
/* On repasse le storefront FluentCart en clair, uniquement dans nos cadres. */
.bou-fluent-box, .bou-fluent-products{
  --fct-primary-text-color:#0A0A0A;
  --fct-secondary-text-color:#6B6B70;
  --fct-border-color:#E4E4E7;

  --fct-customer-dashboard-title-color:#0A0A0A;
  --fct-customer-dashboard-text-color:#333333;
  --fct-customer-dashboard-border-color:#E4E4E7;

  --fct-card-primary-text-color:#0A0A0A;
  --fct-card-text-color:#333333;
  --fct-card-border-color:#E4E4E7;
  --fct-card-bg:#FFFFFF;
  --fct-card-btn-bg-color:#E8261A;
  --fct-card-btn-text-color:#FFFFFF;

  --fct-shop-primary-text-color:#0A0A0A;
  --fct-shop-secondary-text-color:#6B6B70;
  --fct-shop-border-color:#E4E4E7;

  --fct-single-product-primary-text-color:#0A0A0A;
  --fct-single-product-border-color:#E4E4E7;
  --fct-single-product-active-border-color:#E8261A;

  --fct-checkout-primary-text-color:#0A0A0A;
  --fct-checkout-secondary-text-color:#6B6B70;
  --fct-checkout-border-color:#E4E4E7;
  --fct-checkout-primary-bg-color:#FFFFFF;
  --fct-checkout-btn-bg-color:#E8261A;

  --fct-cart-drawer-primary-text-color:#0A0A0A;
  --fct-cart-drawer-secondary-text-color:#6B6B70;

  --fct-modal-checkout-primary-text-color:#0A0A0A;
  --fct-modal-checkout-secondary-text-color:#6B6B70;
  --fct-modal-checkout-border-color:#E4E4E7;
}
/* Secours ciblant les classes FluentCart, au cas ou une couleur serait posee en dur. */
.bou-fluent-box .fct-customer-app,
.bou-fluent-box .fct-card,
.bou-fluent-products .fct-card{ background:#FFFFFF; color:#0A0A0A; border-color:#E4E4E7; }
.bou-fluent-box .fct-card-title,
.bou-fluent-box .fct-card-header-title{ color:#0A0A0A; }
.bou-fluent-box .fct-card-subtitle,
.bou-fluent-box .fct-card-text{ color:#4A4A4E; }
/* L'element actif du menu du tableau de bord : noir avec un trait rouge. */
.bou-fluent-box .fct-dashboard-menu a.active,
.bou-fluent-box .fct-dashboard-menu .active,
.bou-fluent-box .fct-customer-menu .active{
  background:#0A0A0A !important; color:#FFFFFF !important;
  box-shadow:inset 3px 0 0 #E8261A;
}
/* Boutons principaux FluentCart en rouge de la charte. */
.bou-fluent-box .fct-btn-primary,
.bou-fluent-products .fct-btn-primary,
.bou-fluent-box button.fct-primary,
.bou-fluent-products .fct-add-to-cart{
  background:#E8261A !important; border-color:#E8261A !important; color:#FFFFFF !important;
}
.bou-fluent-box .fct-btn-primary:hover,
.bou-fluent-products .fct-btn-primary:hover{ background:#B71C12 !important; }

/* ==================== PAIEMENT : cadenas + etapes ==================== */
.bou-secure-badge{
  font-family:'IBM Plex Mono', monospace; font-size:10px; font-weight:700;
  letter-spacing:.14em; text-transform:uppercase;
  color:#1B7A3D; background:#E7F6EC; border:1px solid #BFE6CD;
  padding:8px 14px; border-radius:20px; flex-shrink:0;
}
.bou-steps{ width:100%; background:#FFFFFF; padding:22px 24px 4px; }
.bou-steps-inner{ max-width:1100px; margin:0 auto; display:flex; align-items:center; gap:12px; }
.bou-step{
  display:flex; align-items:center; gap:8px;
  font-family:'IBM Plex Mono', monospace; font-size:11px; font-weight:700;
  letter-spacing:.08em; text-transform:uppercase; color:var(--muted);
}
.bou-step-n{
  width:22px; height:22px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  font-size:11px; background:#EDEDF0; color:var(--muted);
}
.bou-step.active{ color:var(--ink); }
.bou-step.active .bou-step-n{ background:var(--red); color:#fff; }
.bou-step.done{ color:#1B7A3D; }
.bou-step.done .bou-step-n{ background:#1B7A3D; color:#fff; }
.bou-step-sep{ flex:1; height:2px; background:var(--line); border-radius:2px; }

/* ==================== RECU : banniere + boutons ==================== */
.bou-confirm-banner{
  width:100%; background:linear-gradient(90deg, #E7F6EC, #FFFFFF);
  border-bottom:1px solid var(--line);
  padding:16px 24px; animation:bou-drop .5s ease both;
}
.bou-confirm-banner-inner{
  max-width:1100px; margin:0 auto; display:flex; align-items:center; gap:12px;
  font-family:'Oswald', sans-serif; font-weight:500; letter-spacing:.04em; color:#0A0A0A;
}
.bou-confirm-check{ font-size:20px; }
.bou-confirm-text{ font-size:15px; }
.bou-cta-row{ display:flex; flex-wrap:wrap; gap:12px; margin-top:22px; }
.bou-cta{
  font-family:'IBM Plex Mono', monospace; font-size:11px; font-weight:700;
  letter-spacing:.12em; text-transform:uppercase; text-decoration:none;
  padding:12px 20px; border-radius:6px; transition:all .15s;
}
.bou-cta-primary{ background:var(--red); color:#fff; box-shadow:0 6px 16px rgba(232,38,26,.22); }
.bou-cta-primary:hover{ background:var(--red-dark); transform:translateY(-2px); }
.bou-cta-outline{ background:#fff; color:var(--ink); border:1.5px solid var(--ink); }
.bou-cta-outline:hover{ background:var(--ink); color:#fff; }

/* ==================== PIED DE PAGE ==================== */
.bou-footer{
  width:100%; background:var(--paper2);
  border-top:1px solid var(--line);
  padding:26px 24px;
  display:flex; align-items:center; justify-content:space-between;
  flex-wrap:wrap; gap:12px;
}
.bou-footer-copy{
  font-family:'IBM Plex Mono', monospace; font-size:9px;
  letter-spacing:.18em; text-transform:uppercase; color:var(--muted);
}
.bou-footer-nav{ display:flex; gap:16px; }
.bou-footer-nav a{
  font-family:'IBM Plex Mono', monospace; font-size:9px;
  letter-spacing:.16em; text-transform:uppercase;
  color:var(--muted); text-decoration:none; transition:color .2s;
}
.bou-footer-nav a:hover{ color:var(--red); }

/* ==================== ANIMATIONS ==================== */
@keyframes bou-in{ from{opacity:0; transform:translateY(16px);} to{opacity:1; transform:translateY(0);} }
@keyframes bou-drop{ from{opacity:0; transform:translateY(-12px);} to{opacity:1; transform:translateY(0);} }
@keyframes bou-grow{ from{transform:scaleX(0);} to{transform:scaleX(1);} }
@keyframes bou-blink{ 0%,55%{opacity:1;} 56%,100%{opacity:.15;} }

@media (prefers-reduced-motion: reduce){
  *{ animation:none !important; transition:none !important; }
}

/* ==================== MOBILE ==================== */
@media (max-width:680px){
  .bou-topbar-nav{ display:none; }
  .bou-hero{ padding:38px 16px 30px; }
  .bou-page-head{ padding:30px 16px 22px; }
  .bou-content-section, .bou-shop-section{ padding:26px 14px 56px; }
  .bou-fluent-box, .bou-fluent-products{ padding:18px; }
  .bou-footer{ flex-direction:column; align-items:flex-start; }
}
