/* ══════════════════════════════════════
   pages/boutique.css
══════════════════════════════════════ */

/* ── Hero ── */
.boutique-hero {
    padding: 8.5rem 0 4rem;
    background: white;
    position: relative;
    overflow: hidden;
    text-align: center;
}
[data-theme="dark"] .boutique-hero { background: #090d1a; }

.boutique-hero h1 {
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    font-weight: 800;
    color: var(--sky-text);
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 0.6rem;
}
.boutique-hero .sub {
    font-size: 0.95rem;
    color: var(--sky-muted);
    max-width: 480px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

/* ── Bandeau annonces ── */
.boutique-annonces {
    max-width: 700px;
    margin: 0 auto 3.5rem;
    background: linear-gradient(135deg, var(--sky-navy), #3a3f7c);
    border-radius: 14px;
    box-shadow: 0 6px 24px rgba(37,47,82,0.28);
    color: #fff;
    font-size: 0.88rem;
    font-weight: 500;
    position: relative;
    overflow: hidden;
    height: 52px;
    display: flex;
    align-items: center;
}
.annonce-track {
    position: absolute;
    width: 100%;
    top: 0; left: 0;
    transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
}
.annonce-track span {
    height: 52px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.annonce-track a { color: #ffd166; text-decoration: underline; font-weight: 600; }
@media (max-width: 768px) {
    .annonce-track span { white-space: normal; font-size: 0.8rem; line-height: 1.3; text-align: center; }
}

/* ── Section boutique ── */
.boutique-section {
    padding: 20px 0 80px;
    background: var(--sky-off);
}
[data-theme="dark"] .boutique-section { background: #0d1117; }

/* ── Titre catégorie ── */
.cat-title {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--sky-text);
    margin: 3rem 0 1.8rem;
    padding-bottom: 0.7rem;
    border-bottom: 3px solid var(--sky-blue);
}
.cat-title i { color: var(--sky-blue); }

/* ── Grille articles ── */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
@media (max-width: 1024px) { .articles-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px)  { .articles-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .articles-grid { grid-template-columns: 1fr; } }

/* ── Carte article ── */
.article-card {
    background: white;
    border-radius: 16px;
    border: 1.5px solid var(--sky-border);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s cubic-bezier(0.4,0,0.2,1), box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
}
[data-theme="dark"] .article-card { background: #161b2e; }
.article-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--sky-shadow-lg);
    border-color: rgba(74,108,247,0.3);
}

/* ── Zone image ── */
.article-img-wrap {
    background: var(--sky-off);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.4rem 1rem;
    min-height: 150px;
    position: relative;
}
[data-theme="dark"] .article-img-wrap { background: #0d1117; }
.article-img-wrap img {
    height: 120px;
    width: auto;
    max-width: 90%;
    object-fit: contain;
    transition: transform 0.35s cubic-bezier(0.68,-0.55,0.27,1.55);
}
.article-card:hover .article-img-wrap img { transform: scale(1.08) translateY(-4px); }

/* ── Badge ── */
.article-badge {
    position: absolute;
    top: 10px; left: 10px;
    font-size: 0.62rem;
    font-weight: 800;
    padding: 3px 9px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    animation: pulseBadge 2s ease-in-out infinite;
}
.badge-nouveau   { background: linear-gradient(135deg,#ff9a9e,#fad0c4); color: white; }
.badge-quantite  { background: linear-gradient(135deg,#ef4444,#f87171); color: white; }
.badge-lancement { background: linear-gradient(135deg,#f59e0b,#fcd34d); color: #1a1f36; }
@keyframes pulseBadge {
    0%,100% { box-shadow: 0 2px 6px rgba(0,0,0,0.15); transform: scale(1); }
    50%      { box-shadow: 0 4px 14px rgba(0,0,0,0.25); transform: scale(1.06); }
}

/* ── Corps carte ── */
.article-body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 10px;
}
.article-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--sky-text);
    line-height: 1.3;
    text-align: center;
}
.article-price {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--sky-navy);
    text-align: center;
    line-height: 1;
}
[data-theme="dark"] .article-price { color: #a78bfa; }
.article-price .currency {
    font-size: 0.75rem;
    font-weight: 600;
    vertical-align: super;
    margin-right: 1px;
    color: var(--sky-muted);
}

/* ── Bouton acheter ── */
.btn-acheter {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    background: var(--sky-navy);
    color: white;
    font-weight: 700;
    font-size: 0.8rem;
    border-radius: 50px;
    padding: 0.6rem 1rem;
    text-decoration: none;
    transition: all 0.25s;
    position: relative;
    overflow: hidden;
    margin-top: auto;
}
.btn-acheter::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(135deg, var(--sky-blue), var(--sky-blue-lt));
    opacity: 0;
    transition: opacity 0.3s;
}
.btn-acheter:hover { color: white; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(74,108,247,0.35); }
.btn-acheter:hover::before { opacity: 1; }
.btn-acheter span,
.btn-acheter i { position: relative; z-index: 1; }

/* ── Alerte info paiement ── */
.payment-info {
    background: rgba(74,108,247,0.06);
    border: 1.5px solid rgba(74,108,247,0.15);
    border-left: 4px solid var(--sky-blue);
    border-radius: 14px;
    padding: 1.2rem 1.5rem;
    margin: 2.5rem 0 0;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--sky-muted);
    line-height: 1.6;
}
[data-theme="dark"] .payment-info { background: rgba(74,108,247,0.08); }
.payment-info i { color: var(--sky-blue); font-size: 1.1rem; flex-shrink: 0; margin-top: 2px; }
.payment-info a { color: var(--sky-blue); font-weight: 600; }

/* ── Section "À quoi ça sert" ── */
.why-donate-section {
    padding: 60px 0 80px;
    background: white;
}
[data-theme="dark"] .why-donate-section { background: #090d1a; }

.why-donate-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 2.5rem;
}
@media (max-width: 768px) { .why-donate-grid { grid-template-columns: 1fr; } }

.why-donate-card {
    border-radius: 18px;
    padding: 2rem;
    border: 1.5px solid var(--sky-border);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

 .boutique-ad-top {
     margin: 2rem auto 1rem;
     text-align: center;
     max-width: 960px; /* Limite la largeur pour l'esthétique */
 }
.boutique-ad-top .ad-notice {
    font-size: 0.75rem;
    color: var(--sky-muted, #888);
    margin-bottom: 0.5rem;
}
@media (max-width: 768px) {
    .boutique-ad-top {
        margin: 1.5rem auto 0.5rem;
    }
}

.why-donate-card:hover { transform: translateY(-5px); box-shadow: var(--sky-shadow-lg); }
.why-donate-card .card-emoji { font-size: 2.4rem; display: block; margin-bottom: 1rem; }
.why-donate-card h5 { font-size: 1rem; font-weight: 700; color: var(--sky-text); margin-bottom: 0.5rem; }
.why-donate-card p  { font-size: 0.83rem; color: var(--sky-muted); line-height: 1.65; margin: 0; }

.why-donate-card.green { background: rgba(34,197,94,0.05);  border-color: rgba(34,197,94,0.2); }
.why-donate-card.blue  { background: rgba(74,108,247,0.05); border-color: rgba(74,108,247,0.2); }
.why-donate-card.amber { background: rgba(245,158,11,0.05); border-color: rgba(245,158,11,0.2); }
[data-theme="dark"] .why-donate-card.green { background: rgba(34,197,94,0.06); }
[data-theme="dark"] .why-donate-card.blue  { background: rgba(74,108,247,0.06); }
[data-theme="dark"] .why-donate-card.amber { background: rgba(245,158,11,0.06); }