/*
Theme Name: Afriquencheres
Theme URI: https://afriquencheres.com
Author: Afriquencheres
Description: Theme leger et moderne pour plateforme d'encheres (texte vert fonce, header blanc, recherche centree, footer sticky).
Version: 1.0.1
Text Domain: afriquencheres
*/

/* =========================
   VARIABLES GLOBALES
   ========================= */
:root {
  --afch-accent:#065f3c;
  --afch-accent-600:#064c32;
  --afch-accent-700:#053c27;

  --afch-dark:#0b0b0b;
  --afch-gray:#f5f6f8;
  --afch-gray-2:#eef1f5;
  --afch-border:#e6e8ec;
  --afch-text:#111;
  --afch-muted:#667085;

  --radius-sm:8px;
  --radius-md:12px;
  --radius-lg:16px;

  --shadow-sm:0 1px 2px rgba(16,24,40,.06);
  --shadow-md:0 4px 12px rgba(16,24,40,.08);
  --shadow-lg:0 10px 24px rgba(16,24,40,.12);
}

/* =========================
   RESET & BASE
   ========================= */
*{box-sizing:border-box}
body{
  margin:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,'Helvetica Neue',Arial,sans-serif;
  background:#fff;color:var(--afch-text);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}
a{text-decoration:none;color:inherit;transition:.2s ease}
a:hover{color:var(--afch-accent)}
img{max-width:100%;height:auto;display:block}

/* =========================
   LAYOUT GENERAL
   ========================= */
.afch-site{min-height:100vh;display:flex;flex-direction:column}
.afch-main{flex:1}
.fullw{width:100%;padding:0 16px}

/* =========================
   HEADER / TOPBAR / MENU
   ========================= */
.afch-topbar{background:#fff;border-bottom:1px solid var(--afch-border)}
.afch-topbar .wrap{display:flex;align-items:center;gap:10px;padding:8px 16px}
.afch-top-right{margin-left:auto;display:flex;gap:14px}
.afch-logo{font-weight:800;font-size:20px;color:var(--afch-accent)}
.afch-header{position:sticky;top:0;z-index:50;background:#fff;border-bottom:1px solid var(--afch-border)}
.afch-header .bar{display:flex;align-items:center;justify-content:center;gap:28px;padding:10px 16px}
.afch-menu{display:flex;align-items:center;gap:10px}
.afch-menu a{color:var(--afch-accent);padding:8px 12px;border-radius:8px;font-size:15px}
.afch-menu a:hover{background:var(--afch-gray)}

/* =========================
   RECHERCHE
   ========================= */
.afch-search{flex:0 1 560px}
.afch-search form{display:flex;align-items:center;width:100%}
.afch-search input[type="search"]{
  flex:1;height:42px;padding:10px 14px;font-size:15px;
  border:1px solid var(--afch-accent);
  border-right:0;border-radius:999px 0 0 999px;
}
.afch-search button{
  height:42px;padding:0 16px;font-weight:600;
  background:var(--afch-accent);color:#fff;
  border:1px solid var(--afch-accent);
  border-radius:0 999px 999px 0;cursor:pointer;
}
.afch-search button:hover{background:var(--afch-accent-600)}

/* =========================
   CATEGORIES & MENU MOBILE
   ========================= */
.afch-categories-menu{background:#fff;border-bottom:1px solid var(--afch-border);padding:10px 0;text-align:center}
.afch-families{display:inline-flex;list-style:none;gap:0;padding:0;margin:0;justify-content:center}
.afch-family>a{color:var(--afch-accent);padding:8px 12px;border-radius:6px}
.afch-family>a:hover{background:var(--afch-gray-2)}
.afch-subcats{display:none;position:absolute;top:100%;left:0;background:#fff;border:1px solid var(--afch-border);border-radius:6px;list-style:none;padding:10px 0}
.afch-family:hover .afch-subcats{display:block}
.afch-subcats a{display:block;padding:8px 14px;font-size:14px}

/* =========================
   HERO / GRID PRODUITS
   ========================= */
.afch-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:18px;margin:20px 0}
.afch-card{
  border:1px solid var(--afch-border);border-radius:var(--radius-md);
  background:#fff;display:flex;flex-direction:column;
  box-shadow:var(--shadow-sm);transition:.15s ease;
}
.afch-card:hover{transform:translateY(-2px);box-shadow:var(--shadow-md)}
.afch-card img{width:100%;aspect-ratio:4/3;object-fit:cover;background:#fafafa}
.afch-card .body{padding:12px 14px;display:flex;flex-direction:column;gap:6px}
.afch-card h3{font-size:15px;margin:2px 0;color:var(--afch-text)}
.afch-price{font-weight:700;font-size:16px;color:var(--afch-accent)}

/* =========================
   FORMULAIRES / BOUTONS
   ========================= */
button,input,select,textarea{font:inherit;color:inherit}
.afch-btn{
  background:var(--afch-accent);color:#fff;padding:10px 14px;
  border:none;border-radius:8px;cursor:pointer;font-weight:600;
}
.afch-btn:hover{background:var(--afch-accent-600)}

/* =========================
   FOOTER
   ========================= */
.afch-footer{background:#000;color:#fff;margin-top:auto}
.afch-footer .wrap{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:16px;padding:22px 16px}
.afch-footer a{color:#fff;text-decoration:underline}
.afch-copy{border-top:1px solid #222;text-align:center;color:#bbb;padding:12px 16px}

/* =========================
   TABLES / PAGINATION
   ========================= */
.afch-table{width:100%;border-collapse:collapse;border:1px solid var(--afch-border)}
.afch-table th,.afch-table td{padding:10px;text-align:left;border-bottom:1px solid var(--afch-border)}
.afch-pagination{display:flex;gap:8px;align-items:center;justify-content:center;margin:18px 0}
.afch-page{border:1px solid var(--afch-border);padding:8px 12px;border-radius:8px;background:#fff;cursor:pointer}
.afch-page.is-active{background:var(--afch-accent);color:#fff}

/* =========================
   PRODUITS SIMILAIRES / RELATED
   ========================= */
.related.products{margin-top:30px;border-top:1px solid var(--afch-border);padding-top:15px}
.related.products h2{font-size:20px;font-weight:700;color:#111}

/* =========================
   FORMULAIRES D ENCHERES / INSCRIPTION
   ========================= */
.afch-auction-form,.afch-register,.afch-login{
  display:flex;flex-direction:column;gap:14px;
  max-width:600px;margin:40px auto;padding:24px;
  border:1px solid var(--afch-border);border-radius:10px;
  background:#fafafa;box-shadow:var(--shadow-sm);
}
.afch-auction-form input,.afch-auction-form textarea,.afch-auction-form select{
  width:100%;padding:11px 13px;border:1px solid #ccc;border-radius:6px;font-size:15px;
}
.afch-auction-form button{background:var(--afch-accent);color:#fff;padding:12px;border:none;border-radius:6px;cursor:pointer;font-weight:600}

/* ======================================================
   Boutique Afriquencheres - Version Premium Alignee
   ====================================================== */

/* === Fond global === */
body.woocommerce-page {
  background: #f6f6f8;
}

/* === Grille centree === */
.woocommerce .products {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  align-items: stretch;
  gap: 22px;
  margin: 30px auto;
  padding: 0 20px;
  max-width: 1400px;
  box-sizing: border-box;
}

/* === Carte produit === */
.woocommerce ul.products li.product {
  flex: 0 1 230px;
  background: #fff;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
  overflow: hidden;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s ease;
  cursor: pointer;
  position: relative;
}

.woocommerce ul.products li.product:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  border-color: #d1d5db;
}

/* === Image produit === */
.woocommerce ul.products li.product img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid #eee;
  background: #fafafa;
  transition: transform 0.3s ease;
}
.woocommerce ul.products li.product:hover img {
  transform: scale(1.05);
}

/* === Texte principal === */
.afch-title {
  font-size: 15px;
  font-weight: 600;
  color: #1f2937;
  margin: 10px 0 6px;
  padding: 0 10px;
  line-height: 1.4;
}

.afch-current-price {
  font-size: 14px;
  color: #065f3c;
  font-weight: 700;
  margin-bottom: 6px;
}

.afch-auction-timer {
  font-size: 13px;
  color: #6b7280;
  font-weight: 500;
  margin-bottom: 10px;
}

/* === Bouton === */
.woocommerce ul.products li.product .button {
  background: #065f3c;
  color: #fff !important;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  margin: 8px auto 14px;
  width: 80%;
  transition: all 0.2s ease;
}
.woocommerce ul.products li.product .button:hover {
  background: #047857;
  transform: translateY(-2px);
}

/* === Badges dynamiques === */
.afch-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  background: linear-gradient(135deg, #065f3c, #047857);
  animation: badgeFadeIn 0.8s ease both;
}

/* Degrades par statut */
.afch-badge.active { background: linear-gradient(135deg, #16a34a, #22c55e); }
.afch-badge.ended { background: linear-gradient(135deg, #dc2626, #ef4444); }
.afch-badge.sale { background: linear-gradient(135deg, #f59e0b, #eab308); }
.afch-badge.new { background: linear-gradient(135deg, #2563eb, #3b82f6); }
.afch-badge.popular { background: linear-gradient(135deg, #9333ea, #a855f7); }

@keyframes badgeFadeIn {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}

/* === Responsive === */
@media (max-width: 1024px) {
  .woocommerce .products { gap: 18px; }
  .woocommerce ul.products li.product { flex: 0 1 200px; }
}
@media (max-width: 768px) {
  .woocommerce ul.products li.product { flex: 0 1 45%; }
}
@media (max-width: 480px) {
  .woocommerce ul.products li.product { flex: 0 1 100%; }
  .woocommerce ul.products li.product img { height: 180px; }
  .afch-title { font-size: 14px; }
  .afch-current-price { font-size: 13px; }
}

/* === Supprimer les doublons WooCommerce (titre et prix natifs) === */
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product .price {
  display: none !important;
}


/* =========================================================
   PREMIUM AFCH - ACCUEIL (scope body.home)
   ========================================================= */

/* ---------- HERO ---------- */
body.home .afch-hero {
  background: linear-gradient(135deg,#0a7a55,#065f3c);
  color:#fff;
  padding:56px 20px;
  border-radius:16px;
  margin:20px auto 10px;
  max-width:1200px;
  box-shadow:0 6px 24px rgba(6,95,60,.15);
}
body.home .afch-hero-inner { max-width:860px; margin:0 auto; text-align:center; }
body.home .afch-hero h1 { margin:0 0 10px; font-size:32px; font-weight:800; letter-spacing:.2px; }
body.home .afch-hero p { margin:0 0 16px; font-size:16px; opacity:.95; }
body.home .afch-hero-cta { display:flex; gap:12px; justify-content:center; flex-wrap:wrap; }
body.home .afch-btn { display:inline-block; padding:10px 18px; border-radius:10px; font-weight:700; }
body.home .afch-btn-primary { background:#fff; color:#065f3c; }
body.home .afch-btn-ghost { background:transparent; border:1.5px solid #e5e7eb; color:#fff; }
body.home .afch-btn.is-disabled { opacity:.6; pointer-events:none; }

/* ---------- SECTIONS (titres + liens "Tout voir") ---------- */
body.home .afch-section { max-width:1200px; margin:28px auto; padding:0 20px; }
body.home .afch-section-head { display:flex; align-items:center; justify-content:space-between; margin-bottom:12px; }
body.home .afch-section-head h2 { margin:0; font-size:20px; font-weight:800; color:#111; letter-spacing:.2px; }
body.home .afch-link { color:#065f3c; font-weight:700; text-decoration:none; }
body.home .afch-link:hover { text-decoration:underline; }

/* ---------- LISTES PRODUITS (shortcodes) ---------- */
body.home .afch-section ul.products {
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  align-items:stretch;
  gap:22px;
  margin:20px auto;
  padding:0 10px;
  list-style:none;
  max-width:1400px;
}
body.home .afch-section ul.products li.product {
  flex:0 1 230px;
  background:#fff;
  border-radius:14px;
  border:1px solid #e5e7eb;
  box-shadow:0 3px 10px rgba(0,0,0,0.05);
  overflow:hidden;
  text-align:center;
  display:flex;
  flex-direction:column;
  transition:transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  position:relative;
}
body.home .afch-section ul.products li.product:hover {
  transform:translateY(-5px);
  box-shadow:0 8px 20px rgba(0,0,0,0.08);
  border-color:#d1d5db;
}

/* Images homogenees (meme hauteur que la boutique) */
body.home .afch-section ul.products li.product img {
  width:100%;
  height:200px;
  object-fit:cover;
  background:#fafafa;
  border-bottom:1px solid #eee;
  transition:transform .3s ease;
}
body.home .afch-section ul.products li.product:hover img { transform:scale(1.05); }

/* Contenu injecte par les shortcodes (titre / prix courant / timer) */
body.home .afch-title {
  font-size:15px;
  font-weight:600;
  color:#1f2937;
  margin:10px 0 6px;
  padding:0 10px;
  line-height:1.4;
}
body.home .afch-current-price {
  font-size:14px;
  color:#065f3c;
  font-weight:700;
  margin-bottom:6px;
}
body.home .afch-auction-timer {
  font-size:13px;
  color:#6b7280;
  font-weight:500;
  margin-bottom:10px;
}

/* Bouton (au cas ou Woo affiche le bouton natif) */
body.home .afch-section ul.products li.product .button {
  background:#065f3c;
  color:#fff;
  border-radius:8px;
  padding:8px 14px;
  font-size:13px;
  font-weight:600;
  margin:8px auto 14px;
  width:80%;
  transition:transform .2s ease, background .2s ease;
}
body.home .afch-section ul.products li.product .button:hover {
  background:#047857;
  transform:translateY(-2px);
}

/* Badges (memes classes que la boutique, mais scope accueil) */
body.home .afch-badge {
  position:absolute; top:12px; left:12px;
  padding:5px 10px; border-radius:20px;
  font-size:12px; font-weight:600; color:#fff;
  box-shadow:0 2px 6px rgba(0,0,0,0.15);
  background:linear-gradient(135deg,#065f3c,#047857);
}
body.home .afch-badge.active { background:linear-gradient(135deg,#16a34a,#22c55e); }
body.home .afch-badge.ended  { background:linear-gradient(135deg,#dc2626,#ef4444); }
body.home .afch-badge.sale   { background:linear-gradient(135deg,#f59e0b,#eab308); }
body.home .afch-badge.new    { background:linear-gradient(135deg,#2563eb,#3b82f6); }
body.home .afch-badge.popular{ background:linear-gradient(135deg,#9333ea,#a855f7); }

/* Masquer le titre/prix Woo natifs UNIQUEMENT sur l accueil */
body.home .afch-section ul.products li.product .woocommerce-loop-product__title,
body.home .afch-section ul.products li.product .price { display:none; }

/* ---------- Blocs editoriaux (How / Testimonials / FAQ / App) ---------- */
body.home .afch-how {
  max-width:1200px; margin:30px auto; padding:0 20px;
  display:grid; grid-template-columns:repeat(auto-fit, minmax(220px, 1fr));
  gap:14px;
}
body.home .afch-how-item {
  background:#fff; border:1px solid #e5e7eb; border-radius:12px;
  padding:16px; text-align:center; box-shadow:0 2px 6px rgba(0,0,0,.05);
}
body.home .afch-step {
  width:36px; height:36px; border-radius:50%;
  background:#065f3c; color:#fff; display:inline-flex;
  align-items:center; justify-content:center; font-weight:800; margin-bottom:8px;
}

body.home .afch-testis {
  display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:14px;
}
body.home .afch-testi {
  background:#fff; border:1px solid #e5e7eb; border-radius:12px;
  padding:16px; box-shadow:0 2px 6px rgba(0,0,0,.05);
}
body.home .afch-testi p { margin:0 0 8px; }

body.home .afch-faq { max-width:900px; margin:28px auto; padding:0 20px; }
body.home .afch-faq h2 { font-size:20px; margin-bottom:8px; }
body.home .afch-faq details {
  background:#fff; border:1px solid #e5e7eb; border-radius:12px;
  padding:12px 16px; margin-bottom:10px;
}
body.home .afch-faq summary { cursor:pointer; font-weight:700; }

body.home .afch-app {
  max-width:1200px; margin:30px auto 60px; padding:26px 20px;
  background:linear-gradient(135deg,#111827,#374151); color:#fff;
  border-radius:16px; text-align:center;
}
body.home .afch-app h2 { margin:0 0 6px; }

/* ---------- Responsive ---------- */
@media (max-width:1024px){
  body.home .afch-section ul.products { gap:18px; }
  body.home .afch-section ul.products li.product { flex:0 1 200px; }
}
@media (max-width:768px){
  body.home .afch-hero { padding:42px 16px; }
  body.home .afch-hero h1 { font-size:26px; }
  body.home .afch-section ul.products { gap:14px; }
}
@media (max-width:480px){
  body.home .afch-section ul.products { justify-content:center; }
  body.home .afch-section ul.products li.product { flex:0 1 100%; }
  body.home .afch-section ul.products li.product img { height:180px; }
  body.home .afch-title { font-size:14px; }
  body.home .afch-current-price { font-size:13px; }
}


#afch-search-results {
    position: absolute;
    top: 44px;
    width: 100%;
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0,0,0,.12);
    display: none;
    z-index: 999;
}

#afch-search-results.show {
    display: block;
}

.afch-search-dropdown {
    padding: 10px;
}

.afch-search-title {
    font-weight: 700;
    margin: 10px 0 6px;
    color: #444;
}

.afch-search-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 6px;
    color: #222;
    border-radius: 8px;
}

.afch-search-item:hover {
    background: #eef6f3;
    color: #065f3c;
}

.afch-search-icon {
    color: #f76d00;
    font-size: 18px;
}

.afch-search-empty {
    padding: 20px;
    text-align: center;
    color: #777;
}

/* ===== PAGE RECHERCHE PREMIUM ===== */

.afch-search-page {
    padding: 40px 20px;
    max-width: 1250px;
    margin: auto;
}

.afch-search-title {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 25px;
}

.afch-search-title span {
    color: #065f3c;
}

.afch-search-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 24px;
}


/* ===== CARTES GLOBAL ===== */

.afch-card {
    display: block;
    background: #fff;
    padding: 12px;
    border-radius: 12px;
    text-decoration: none;
    color: #222;
    border: 1px solid #eee;
    transition: .25s;
}

.afch-card:hover {
    border-color: #065f3c;
    box-shadow: 0 4px 18px rgba(0,0,0,.08);
}

.afch-card-img img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    border-radius: 10px;
}


/* ===== Texte ===== */

.afch-card-info h3 {
    font-size: 15px;
    margin: 10px 0 6px;
    font-weight: 600;
}


/* Prix produits */
.afch-card-price {
    color: #065f3c;
    font-weight: 800;
    font-size: 16px;
}

/* Prix encheres */
.afch-card-price.auction {
    color: #c0392b;
}


/* Metadonnees encheres */
.afch-card-meta {
    font-size: 13px;
    margin-top: 6px;
    line-height: 1.4;
}

.afch-card-meta span {
    display: block;
    color: #333;
}


/* TAGS */
.afch-tag-product,
.afch-tag-auction {
    margin-top: 10px;
    display: inline-block;
    padding: 4px 10px;
    font-size: 12px;
    border-radius: 6px;
    font-weight: 700;
}

.afch-tag-product {
    background: #065f3c15;
    color: #065f3c;
}

.afch-tag-auction {
    background: #ffefe9;
    color: #c0392b;
}

.afch-no-results {
    text-align: center;
    padding: 100px 20px;
    font-size: 18px;
    color: #888;
}


.afch-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.afch-search-title {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 30px;
    color: #064c32;
}
.afch-search-title span {
    color: #0a663d;
}

.afch-search-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 25px;
    list-style: none;
}

.afch-search-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform .2s;
}
.afch-search-card:hover {
    transform: translateY(-5px);
}

.afch-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #f97316;
    color: #fff;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
}

.afch-badge.active { background:#10b981; }
.afch-badge.ended { background:#dc2626; }

.afch-search-link {
    display: block;
    text-decoration: none;
    color: inherit;
    padding-bottom: 15px;
}

.afch-search-thumb img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.afch-search-info {
    padding: 12px 15px;
}

.afch-search-info h3 {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 700;
}

.afch-search-price {
    color: #064c32;
    font-weight: 700;
}

.afch-empty-search {
    padding: 40px;
    text-align: center;
    font-size: 20px;
    font-weight: 600;
}

.afch-pagination {
    margin-top: 30px;
    text-align: center;
}

/* Cache la ligne "Increment :" dans le pave Woo par classe */
.single-product .entry-summary p.afch-hide-increment { 
  display: none !important;
}

/* =========================================================
   AFCH - "Comment ça marche" (Design 2 par ligne)
   Patch ciblé: .afch-how2 uniquement
   ========================================================= */
/* =========================================================
   AFCH - "Comment ça marche" (Fond vert extra light + contour orange light)
   Patch ciblé: .afch-how2 uniquement
   ========================================================= */

.afch-how2 .afch-how2-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

@media (max-width: 860px){
  .afch-how2 .afch-how2-grid{ grid-template-columns: 1fr; }
}

/* --- Variables locales (scopées) --- */
.afch-how2{
  --afch-green-bg: #1E9E6A;          /* vert extra light */
  --afch-green-bg-2: #f6fffa;        /* variante encore plus claire */
  --afch-orange-border: #ffd1b3;     /* orange light */
  --afch-orange-accent: #ff8a3d;     /* orange accent */
  --afch-text: #0f172a;              /* texte */
  --afch-muted: rgba(15, 23, 42, .75);
  --afch-white: #ffffff;
}

/* --- Cards --- */
.afch-how2 .afch-how2-card{
  position: relative;
  border-radius: 18px;
  padding: 18px 18px 14px;
  background: linear-gradient(180deg, var(--afch-green-bg), var(--afch-green-bg-2));
  color: var(--afch-text);
  border: 1px solid var(--afch-orange-border);
  box-shadow: 0 10px 26px rgba(15, 23, 42, .08);
  overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

/* léger halo très soft */
.afch-how2 .afch-how2-card::before{
  content: "";
  position: absolute;
  inset: -2px;
  background:
    radial-gradient(520px 220px at 0% 0%,
      rgba(255, 138, 61, .16), transparent 60%),
    radial-gradient(520px 240px at 100% 10%,
      rgba(255, 138, 61, .10), transparent 55%),
    radial-gradient(560px 260px at 40% 120%,
      rgba(16, 185, 129, .12), transparent 60%);
  pointer-events: none;
  opacity: .9;
}

.afch-how2 .afch-how2-card > *{ position: relative; z-index: 1; }

.afch-how2 .afch-how2-card:hover{
  transform: translateY(-2px);
  border-color: rgba(255, 138, 61, .55);
  box-shadow: 0 14px 34px rgba(15, 23, 42, .10);
}

/* --- Top row (icon + title) --- */
.afch-how2 .afch-how2-top{
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.afch-how2 .afch-how2-icon{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--afch-white);
  border: 1px solid rgba(255, 138, 61, .28);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .06);
}

.afch-how2 .afch-how2-icon svg{
  width: 22px;
  height: 22px;
  fill: rgba(255, 138, 61, .95);
}

/* --- Step pill --- */
.afch-how2 .afch-how2-pill{
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  font-size: 12px;
  border-radius: 999px;
  background: rgba(255, 138, 61, .10);
  border: 1px solid rgba(255, 138, 61, .25);
  color: rgba(15, 23, 42, .88);
}

/* --- Headings / text --- */
.afch-how2 .afch-how2-step h3{
  margin: 6px 0 0;
  font-size: 18px;
  line-height: 1.2;
  color: var(--afch-text);
}

.afch-how2 .afch-how2-card p{
  margin: 0 0 12px;
  color: var(--afch-muted);
  line-height: 1.55;
}

/* --- Actions row --- */
.afch-how2 .afch-how2-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

/* Option: harmoniser les boutons si ton thème le permet sans casser
   (ne s'applique que dans .afch-how2) */
.afch-how2 .afch-btn{
  border-radius: 12px;
  box-shadow: 0 10px 18px rgba(15, 23, 42, .06);
}

.afch-how2 .afch-btn.afch-btn-primary{
  background: var(--afch-white);
  color: #0b6b4b; /* vert lisible */
  border: 1px solid rgba(16, 185, 129, .30);
}

.afch-how2 .afch-btn.afch-btn-primary:hover{
  border-color: rgba(16, 185, 129, .55);
  transform: translateY(-1px);
}

.afch-how2 .afch-btn.afch-btn-ghost{
  background: rgba(255, 255, 255, .65);
  border: 1px solid rgba(255, 138, 61, .30);
  color: var(--afch-text);
}

.afch-how2 .afch-btn.afch-btn-ghost:hover{
  border-color: rgba(255, 138, 61, .55);
  transform: translateY(-1px);
}

/* --- Footnote --- */
.afch-how2 .afch-how2-footnote{
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 138, 61, .22);
  font-size: 12.5px;
  color: rgba(15, 23, 42, .78);
}

.afch-how2 .afch-how2-footnote a{
  color: #0b6b4b;
  text-decoration: underline;
  text-underline-offset: 2px;
}
