/* Variables et reset CSS */
:root {
    --primary-color: #e63946;
    --secondary-color: #1d3557;
    --accent-color: #f1faee;
    --text-color: #333;
    --light-gray: #f8f9fa;
    --border-color: #ddd;
    --success-color: #38b000;
    --swiss-red: #ff0000;
    --font-main: 'Helvetica Neue', Arial, sans-serif;
    /* Symboles casino pour utilisation dans le site */
    --icon-spade: '♠';
    --icon-club: '♣';
    --icon-heart: '♥';
    --icon-diamond: '♦';
    --icon-dollar: '$';
    --icon-dice: '⚄';
    --icon-crown: '♛';
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Styles de base */
body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fcfcfc;
    word-wrap: break-word;
    overflow-x: hidden;
}

/* Optimisation pour les textes longs sur mobile */
p, li, td {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header et Navigation */
header {
    background: linear-gradient(to right, #1d3557, #2a508c);
    color: white;
    padding: 15px 0;
    width: 100%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

/* Éléments décoratifs casino en arrière-plan */
header:before, header:after {
    position: absolute;
    font-size: 60px;
    opacity: 0.05;
    color: white;
    z-index: 0;
}

header:before {
    content: var(--icon-spade);
    top: -15px;
    left: 5%;
}

header:after {
    content: var(--icon-diamond);
    bottom: -25px;
    right: 5%;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 5;
}

.logo {
    font-size: 26px;
    font-weight: bold;
    display: flex;
    align-items: center;
    color: white;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

/* Logo avec jeton de casino */
.logo-casino {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 38px;
    height: 38px;
    margin-right: 10px;
    background: linear-gradient(135deg, #e63946, #9d0208);
    position: relative;
    border-radius: 50%;
    box-shadow: 0 3px 6px rgba(0,0,0,0.3);
    border: 2px solid #f1faee;
}

/* Symboles à l'intérieur du jeton */
.logo-casino:before {
    content: "$";
    color: #f1faee;
    font-size: 20px;
    font-weight: bold;
    position: relative;
    top: -1px;
}

/* Anneaux décoratifs */
.logo-casino:after {
    content: "";
    position: absolute;
    top: 4px;
    left: 4px;
    right: 4px;
    bottom: 4px;
    border: 1px dashed rgba(255,255,255,0.4);
    border-radius: 50%;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
}

nav a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 500;
}

nav a:hover {
    color: var(--accent-color);
}

/* Bannière principale */
.hero {
    background: linear-gradient(to right, var(--secondary-color), #457b9d);
    color: white;
    padding: 60px 0;
    text-align: center;
    border-radius: 8px;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.hero:before {
    content: "🎰";
    position: absolute;
    font-size: 200px;
    opacity: 0.1;
    top: -50px;
    right: -50px;
    transform: rotate(15deg);
}

/* Mobile First: базовые стили для мобильных устройств */
.hero h1 {
    font-size: 24px;
    margin-bottom: 15px;
    line-height: 1.2;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.hero p {
    font-size: 16px;
    max-width: 100%;
    margin: 0 auto 20px;
    color: rgba(255,255,255,0.9);
}

/* Планшеты и больше */
@media (min-width: 576px) {
    .hero h1 {
        font-size: 28px;
        margin-bottom: 20px;
    }
    
    .hero p {
        font-size: 18px;
        margin: 0 auto 30px;
    }
}

/* Десктоп */
@media (min-width: 992px) {
    .hero h1 {
        font-size: 40px;
        max-width: 800px;
    }
    
    .hero p {
        max-width: 700px;
    }
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.2s;
    margin-top: 15px;
    min-height: 44px; /* Touch target minimum для мобильных */
    text-align: center;
}

.cta-button:hover {
    background-color: #c1121f;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Contenus principaux */
main {
    padding: 20px 0;
}

/* Mobile First: базовые стили для мобильных */
section {
    margin-bottom: 30px;
    background-color: white;
    padding: 20px 15px;
    border-radius: 8px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.05);
}

h2 {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-size: 22px;
    position: relative;
    padding-bottom: 10px;
}

/* Планшеты */
@media (min-width: 576px) {
    section {
        padding: 25px 20px;
        margin-bottom: 40px;
    }
    
    h2 {
        font-size: 24px;
        margin-bottom: 20px;
    }
}

/* Десктоп */
@media (min-width: 992px) {
    section {
        padding: 30px;
        margin-bottom: 50px;
    }
    
    h2 {
        font-size: 28px;
    }
}

h2:after {
    content: "";
    position: absolute;
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
    bottom: 0;
    left: 0;
}

h3 {
    color: var(--secondary-color);
    margin: 20px 0 12px;
    font-size: 18px;
}

@media (min-width: 576px) {
    h3 {
        margin: 22px 0 14px;
        font-size: 20px;
    }
}

@media (min-width: 992px) {
    h3 {
        margin: 25px 0 15px;
        font-size: 22px;
    }
}

p {
    margin-bottom: 15px;
}

/* Tableaux */
.table-container {
    overflow-x: auto;
    margin: 25px 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

th, td {
    padding: 15px 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    background-color: var(--secondary-color);
    color: white;
    font-weight: 600;
    font-size: 16px;
}

tr:nth-child(even) {
    background-color: var(--light-gray);
}

tr:hover {
    background-color: rgba(29, 53, 87, 0.05);
}

td.bonus-value {
    font-weight: bold;
    color: var(--primary-color);
}

/* Styles pour les boutons dans le tableau */
table .cta-button,
table .deal-btn.casino-link.referral-btn {
    display: inline-block;
    text-align: center;
    min-width: 80px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

table .cta-button:hover,
table .deal-btn.casino-link.referral-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Styles pour les boutons d'affiliation */
.top-card__btn.referral-btn {
    background-color: #38b000;
    border: none;
    cursor: pointer;
    font-weight: bold;
    color: white;
    border-radius: 5px;
    padding: 10px 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.top-card__btn.referral-btn:hover {
    background-color: #2d8d00;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transform: translateY(-3px);
}

/* Styles pour les boutons d'affiliation avec data attributes */
.deal-btn.casino-link.referral-btn {
    background-color: #38b000;
    border: none;
    cursor: pointer;
    font-weight: bold;
    color: white;
    border-radius: 5px;
    padding: 10px 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    min-height: 44px;
    font-family: inherit;
    font-size: inherit;
}

.deal-btn.casino-link.referral-btn:hover {
    background-color: #2d8d00;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transform: translateY(-3px);
}

.deal-btn.casino-link.referral-btn:active {
    transform: translateY(-1px);
}

/* Styles pour les logos des casinos */
td img {
    max-width: 120px;
    max-height: 40px;
    object-fit: contain;
    vertical-align: middle;
    height: auto;
    width: auto;
}

/* Адаптивность изображений */
img {
    max-width: 100%;
    height: auto;
}

/* Styles pour le tableau des méthodes de paiement */
.payment-methods-container {
    margin: 25px 0;
    overflow-x: auto;
}

.payment-table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.payment-table th {
    background-color: var(--secondary-color);
    color: white;
    font-weight: 600;
    text-align: left;
    padding: 15px 12px;
}

.payment-table td {
    padding: 12px;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.payment-table tr:last-child td {
    border-bottom: none;
}

.payment-table tr:nth-child(even) {
    background-color: var(--light-gray);
}

.payment-icon {
    width: 24px;
    height: 24px;
    margin-right: 8px;
    vertical-align: middle;
}

.mobile-friendly {
    color: var(--success-color);
    font-weight: bold;
}

/* Liens connexes */
.related-links {
    background-color: var(--light-gray);
    padding: 20px;
    border-radius: 8px;
    margin: 30px 0;
}

.related-links h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.related-links ul {
    margin-bottom: 0;
}

.related-links a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s;
}

.related-links a:hover {
    text-decoration: underline;
}

/* Carte de casino */
.casino-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.casino-card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.casino-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.casino-card-header {
    background-color: var(--secondary-color);
    color: white;
    padding: 15px;
    text-align: center;
    font-weight: bold;
    font-size: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 70px;
}

.casino-logo {
    max-width: 160px;
    max-height: 45px;
    object-fit: contain;
}

.casino-card-body {
    padding: 20px;
}

.bonus-highlight {
    font-size: 22px;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: bold;
    text-align: center;
}

.bonus-details {
    list-style: none;
    margin-bottom: 20px;
}

.bonus-details li {
    margin-bottom: 8px;
    display: flex;
    align-items: flex-start;
}

.bonus-details li:before {
    content: "✓";
    color: var(--success-color);
    margin-right: 8px;
    font-weight: bold;
}

.promo-code {
    background-color: var(--light-gray);
    padding: 10px;
    text-align: center;
    font-weight: bold;
    border: 1px dashed var(--border-color);
    margin-bottom: 15px;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.promo-code:after {
    content: "COPIER";
    position: absolute;
    right: -45px;
    top: 5px;
    background-color: var(--success-color);
    color: white;
    font-size: 10px;
    padding: 3px 30px;
    transform: rotate(45deg);
    opacity: 0;
    transition: opacity 0.3s;
}

.promo-code:hover:after {
    opacity: 1;
}

/* Blocs d'information */
.info-block {
    background-color: var(--light-gray);
    padding: 20px;
    border-radius: 6px;
    border-left: 4px solid var(--secondary-color);
    margin: 25px 0;
}

.info-block-title {
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

/* Listes */
ul, ol {
    margin: 15px 0;
    padding-left: 20px;
}

li {
    margin-bottom: 8px;
}

/* Encadré de mise en évidence */
.highlight-box {
    background-color: rgba(230, 57, 70, 0.1);
    border: 1px solid var(--primary-color);
    border-radius: 6px;
    padding: 20px;
    margin: 30px 0;
}

.highlight-box h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 18px;
}

/* Badge Suisse */
.swiss-badge {
    display: inline-block;
    background-color: var(--swiss-red);
    color: white;
    padding: 4px 10px;
    font-size: 12px;
    border-radius: 4px;
    margin-left: 10px;
    vertical-align: middle;
    position: relative;
}

.swiss-badge:before {
    content: "";
    position: absolute;
    width: 8px;
    height: 8px;
    background-color: white;
    border-radius: 50%;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

/* Footer */
footer {
    background-color: var(--secondary-color);
    color: white;
    padding: 40px 0 20px;
    margin-top: 50px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-column {
    flex: 1;
    min-width: 250px;
}

.footer-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-title:after {
    content: "";
    position: absolute;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
    bottom: 0;
    left: 0;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
    text-decoration: underline;
}

.footer-bottom {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    word-wrap: break-word;
}

/* Мобильная адаптация футера */
@media (max-width: 768px) {
    footer {
        padding: 30px 0 15px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 25px;
    }
    
    .footer-column {
        width: 100%;
        min-width: auto;
    }
    
    .footer-bottom {
        font-size: 12px;
        padding: 15px 10px;
    }
}

/* Responsive */
/* Adaptation mobile améliorée */
/* Grand mobile et tablettes (< 992px) */
@media (max-width: 992px) {
    .container {
        max-width: 95%;
    }
    
    .footer-content {
        gap: 20px;
    }
}

/* Mobile moyen (< 768px) */
@media (max-width: 768px) {
    .navbar {
        flex-direction: row;
        gap: 15px;
        position: relative;
        justify-content: space-between;
        align-items: center;
    }
    
    .logo {
        font-size: 22px;
        flex: 0 0 auto;
    }
    
    /* Кнопка меню видна только на мобильных */
    .mobile-menu-toggle {
        display: flex;
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
    }
    
    nav {
        width: 100%;
    }
    
    nav ul {
        display: none; /* Скрыто по умолчанию на мобильных, показывается через JS */
        width: 100%;
        flex-direction: column;
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
        text-align: center;
        margin-top: 15px;
    }
    
    nav ul.active {
        display: flex;
    }
    
    nav ul li {
        margin: 0 10px;
    }
    
    nav a {
        padding: 10px 15px;
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 44px; /* Touch target для мобильных */
    }
    
    .hero {
        padding: 30px 20px;
        margin-bottom: 30px;
    }
    
    section {
        padding: 20px 15px;
        margin-bottom: 30px;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .casino-cards {
        grid-template-columns: 1fr;
    }
    
    .casino-card {
        margin-bottom: 20px;
    }
    
    .casino-card-header {
        height: 60px;
    }
    
    .casino-logo {
        max-width: 140px;
        max-height: 40px;
    }
    
    .bonus-highlight {
        font-size: 20px;
    }
    
    /* Optimisation du tableau */
    table {
        border: 0;
    }
    
    table caption {
        font-size: 1.3em;
    }
    
    table thead {
        border: none;
        clip: rect(0 0 0 0);
        height: 1px;
        margin: -1px;
        overflow: hidden;
        padding: 0;
        position: absolute;
        width: 1px;
    }
    
    table tr {
        display: block;
        margin-bottom: 20px;
        border: 1px solid var(--border-color);
        border-radius: 6px;
        box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    }
    
    table td {
        display: block;
        font-size: 14px;
        text-align: right;
        position: relative;
        padding: 10px 10px 10px 50%;
        border-bottom: 1px solid var(--border-color);
    }
    
    /* Alignement spécifique pour la cellule de logo */
    table td:first-child {
        text-align: center;
        padding: 15px;
    }
    
    table td:first-child img {
        max-width: 140px;
        max-height: 50px;
        margin: 0 auto;
    }
    
    table td:last-child {
        border-bottom: none;
        padding: 12px;
        text-align: center;
    }
    
    table td:before {
        content: attr(data-label);
        position: absolute;
        left: 10px;
        top: 50%;
        transform: translateY(-50%);
        font-weight: bold;
        color: var(--secondary-color);
        text-align: left;
        width: 45%;
    }
    
    /* Ne pas afficher le label pour la cellule de logo */
    table td:first-child:before {
        display: none;
    }
    
    table .cta-button, 
    table .top-card__btn.referral-btn,
    table .deal-btn.casino-link.referral-btn {
        display: block;
        width: 100%;
        max-width: 200px;
        margin: 10px auto;
        padding: 12px 15px;
        min-height: 44px; /* Touch target */
    }
    
    /* Улучшение для кнопок в карточках на мобильных */
    .casino-card-body .cta-button,
    .casino-card-body .deal-btn.casino-link.referral-btn {
        width: 100%;
        max-width: 100%;
        margin: 10px 0 0 0;
    }
    
    /* Optimisations mobile pour le tableau de paiements */
    .payment-table {
        border: 0;
    }
    
    .payment-table thead {
        border: none;
        clip: rect(0 0 0 0);
        height: 1px;
        margin: -1px;
        overflow: hidden;
        padding: 0;
        position: absolute;
        width: 1px;
    }
    
    .payment-table tr {
        display: block;
        margin-bottom: 15px;
        border: 1px solid var(--border-color);
        border-radius: 6px;
    }
    
    .payment-table td {
        display: block;
        text-align: right;
        position: relative;
        padding: 10px 10px 10px 50%;
        border-bottom: 1px solid var(--border-color);
    }
    
    .payment-table td:before {
        content: attr(data-label);
        position: absolute;
        left: 10px;
        top: 50%;
        transform: translateY(-50%);
        font-weight: bold;
        color: var(--secondary-color);
        text-align: left;
        width: 45%;
    }
    
    .payment-table td:first-child {
        text-align: left;
        padding-left: 12px;
        background-color: var(--light-gray);
        font-weight: bold;
    }
    
    .payment-table td:first-child:before {
        display: none;
    }
    
    /* Corrections mineures */
    h2 {
        font-size: 24px;
    }
    
    h3 {
        font-size: 20px;
    }
    
    .info-block, .highlight-box {
        padding: 15px;
        margin: 20px 0;
        word-wrap: break-word;
    }
    
    .casino-card-body {
        padding: 15px;
    }
    
    .bonus-highlight {
        font-size: 18px;
    }
    
    .payment-icon {
        width: 20px;
        height: 20px;
    }
    
    .footer-column {
        flex-basis: 100%;
    }
}

/* Petit mobile (< 576px) - дополнительные стили для очень маленьких экранов */
@media (max-width: 576px) {
    .container {
        padding: 0 10px;
    }
    
    h2 {
        font-size: 20px;
        line-height: 1.3;
    }
    
    h3 {
        font-size: 17px;
        line-height: 1.3;
    }
    
    .hero {
        padding: 25px 15px;
    }
    
    section {
        padding: 15px 10px;
    }
    
    .table-container {
        margin-left: -10px;
        margin-right: -10px;
        width: calc(100% + 20px);
    }
    
    .cta-button {
        padding: 12px 20px;
        font-size: 14px;
        width: 100%;
        max-width: 300px;
    }
    
    .casino-cards {
        gap: 15px;
    }
    
    .promo-code {
        font-size: 14px;
        padding: 8px;
    }
    
    table td {
        padding: 10px 10px 10px 45%;
        font-size: 13px;
    }
    
    table td:before {
        width: 40%;
        font-size: 13px;
    }
    
    .cta-button {
        padding: 10px 15px;
        font-size: 14px;
    }
}

/* Styles pour le menu hamburger mobile */
.mobile-menu-toggle {
    display: none; /* Скрыт по умолчанию на десктопе */
    background: none;
    border: none;
    font-size: 28px;
    color: white;
    cursor: pointer;
    padding: 8px 12px;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

/* Дополнительные стили для мобильного меню (уже объединены выше) */

