
/* --- Variables globales & Resets --- */
:root {
    --primary-purple: #6a1b9a;
    --accent-lime: #c6ff00;
    --accent-lime-hover: #b2eb00;
    --btn-gray: #b0bec5;
    --btn-gray-hover: #90a4ae;
    --text-dark: #333333;
    --text-muted: #7f8c8d;
    --bg-light: #f4f6f9;
    --card-bg: #ffffff;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    padding-bottom: 80px; /* Évite que la bannière collante ne cache le contenu */
}

/* --- Header --- */
.main-header {
    background-color: var(--primary-purple);
    color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    max-width: 600px;
    margin: 0 auto;
}

.logo {
    font-size: 1.4rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-actions {
    display: flex;
    gap: 16px;
}

.icon-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
}

/* --- Grille / Liste d'offres --- */
.offers-container {
    max-width: 600px;
    margin: 16px auto;
    padding: 0 12px;
}

/* --- Cartes --- */
.offer-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    border: 1px solid #eef2f5;
}

.card-body {
    display: flex;
    gap: 16px;
}

/* Logos des Marques */
.brand-logo {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.75rem;
    color: white;
    flex-shrink: 0;
    text-align: center;
    padding: 4px;
}

/* Couleurs spécifiques des marques */
.bg-megapari { background-color: #212121; }
.bg-linebet { background-color: #0c6233; }
.bg-melbet { background-color: #121212; color: #ffbc00; }
.bg-goldpari { background-color: #ffcc00; color: #000 !important; }
.bg-winwin { background-color: #050505; }
.bg-888starz { background-color: #ffffff; color: #d32f2f; border: 1px solid #e0e0e0; font-size: 0,65rem;}
.brand-details {
    flex-grow: 1;
}

.brand-name {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 2px;
    color: #111111;
}

.rating-stars {
    color: #ffc107;
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.bonus-description {
    font-size: 0.95rem;
    color: #555555;
    line-height: 1.45;
    margin-bottom: 14px;
}

.highlight {
    font-weight: 700;
    color: #111111;
}

/* --- Boutons --- */
.action-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.btn {
    flex: 1;
    text-align: center;
    padding: 11px 8px;
    font-size: 0.95rem;
    font-weight: bold;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.btn-primary {
    background-color: var(--accent-lime);
    color: #111111;
}

.btn-primary:hover {
    background-color: var(--accent-lime-hover);
}

.btn-secondary {
    background-color: var(--btn-gray);
    color: #37474f;
}

.btn-secondary:hover {
    background-color: var(--btn-gray-hover);
}

/* --- Mentions en bas de cartes --- */
.card-footer-text {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 6px;
    border-top: 1px dotted #e0e0e0;
    padding-top: 8px;
}

.tc-apply {
    text-decoration: underline;
    cursor: pointer;
}

/* --- CTA Collant en Bas (Sticky Bottom Bar) --- */
.sticky-footer-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #11161d;
    padding: 12px 16px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.15);
    z-index: 999;
}

.sticky-container {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sticky-brand-info {
    display: flex;
    flex-direction: column;
    color: white;
}

.sticky-name {
    font-weight: bold;
    font-size: 1.1rem;
}

.sticky-rating {
    color: #ffc107;
    font-size: 0.85rem;
    margin-top: 2px;
}

.btn-sticky {
    flex: none;
    width: 50%;
    padding: 10px 0;
}

/* --- Version Mobile responsive (Ajustements) --- */
@media (max-width: 400px) {
    .card-body {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .brand-logo {
        margin-bottom: 8px;
    }
    .action-buttons {
        flex-direction: column;
    }
}


/* --- Variables & Thème --- */
:root {
    --primary-purple: #6a1b9a;
    --accent-lime: #c6ff00;
    --accent-lime-hover: #b2eb00;
    --btn-gray: #b0bec5;
    --btn-gray-hover: #90a4ae;
    --pink-stars: #e91e63; /* Couleur exacte des étoiles et de la flèche de cette capture */
    --text-dark: #333333;
    --text-muted: #999999;
    --bg-light: #f4f6f9;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    padding-bottom: 24px;
}

/* --- Header Style --- */
.main-header {
    background-color: var(--primary-purple);
    color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    max-width: 600px;
    margin: 0 auto;
}

.logo {
    font-size: 1.35rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-actions {
    display: flex;
    gap: 16px;
}

.icon-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.15rem;
    cursor: pointer;
}

/* --- Container Général --- */
.offers-container {
    max-width: 600px;
    margin: 14px auto;
    padding: 0 12px;
}

/* --- Cartes des Offres --- */
.offer-card {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 14px;
    border: 1px solid #e0e4ec;
}

.card-body {
    display: flex;
    gap: 14px;
}

/* Gestion des logos carrés aux bords arrondis */
.brand-logo {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.72rem;
    color: white;
    flex-shrink: 0;
    text-align: center;
}

/* Alignement des couleurs avec la capture 3 */
.bg-1xbet { background-color: #0f6292; }
.bg-betwinner { background-color: #0b6623; }
.bg-1win { background-color: #11161d; }

.brand-details {
    flex-grow: 1;
}

.brand-name {
    font-size: 1.2rem;
    font-weight: bold;
    color: #111111;
    margin-bottom: 2px;
}

/* Étoiles roses de la capture 3 */
.rating-stars {
    color: var(--pink-stars);
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.bonus-description {
    font-size: 0.95rem;
    color: #555555;
    line-height: 1.4;
    margin-bottom: 14px;
}

.highlight {
    font-weight: bold;
    color: #222222;
}

/* --- Boutons d'Action --- */
.action-buttons {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.btn {
    flex: 1;
    text-align: center;
    padding: 10px 4px;
    font-size: 0.95rem;
    font-weight: bold;
    border-radius: 6px;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--accent-lime);
    color: #212121;
    border: 1px solid #aeea00;
}

.btn-secondary {
    background-color: var(--btn-gray);
    color: #455a64;
    border: 1px solid #90a4ae;
}

/* --- Footer Interne des Cartes --- */
.card-footer-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.3;
}

.card-footer-text span {
    display: block;
}

.tc-apply {
    text-decoration: underline;
}

/* --- Indicateur Flottant de Défilement (Bouton Rose) --- */
.scroll-top-indicator {
    position: fixed;
    bottom: 20px;
    right: 16px;
    width: 36px;
    height: 36px;
    background-color: white;
    border: 2px solid var(--pink-stars);
    color: var(--pink-stars);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 1000;
}
