/* /omra/style-omra.css — Thème Dream Travel (Vert Émeraude & Or) */
@import url('style.css?v=1.2');
/* /mycomrh/style-casino.css — Thème Historique Partouche (Optimisé iOS / Android) */
@import url('style.css?v=1.2');

:root {
    --primary: #c9041b;
    --partouche-red: #9e0b1c;
    --partouche-red-dark: #680511;
    --partouche-gold: #d4af37;
    --partouche-gold-light: #f7e089;
    --felt-green: #082d1c;
    --felt-green-pattern: radial-gradient(circle at 50% 30%, #0d442b 0%, #062215 100%);
    --surface: #151c2e;
    --border: #232d42;
    --border-gold: rgba(212, 175, 55, 0.4);
    --text-white: #ffffff;
    --text-dim: #94a3b8;
    --text-gold: #e2c974;
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--felt-green);
    background-image: var(--felt-green-pattern);
    color: var(--text-white);
    line-height: 1.5;
}

/* Dégagement bas obligatoire pour ne jamais masquer le contenu sous la nav */
body {
    padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 85px) !important;
}

/* 1. HEADER ADAPTATIF IPHONE (Encoche & Dynamic Island) */
header
 {
    background: linear-gradient(180deg, var(--partouche-red) 0%, var(--partouche-red-dark) 100%) !important;
    border-bottom: 2px solid var(--partouche-gold) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: -2px;
    left: 0;
    width: 101%;
    z-index: 100;
    padding-top: calc(env(safe-area-inset-top, 0px) + 14px) !important;
    padding-bottom: 12px !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
}

.logo-title {
    font-size: 1.15rem !important;
    font-weight: 800 !important;
    color: var(--partouche-gold-light) !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    letter-spacing: 0.5px;
}

.logo-sub {
    font-size: 0.75rem !important;
    color: #ffd2d6 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 2. TITRES DE SECTION */
.section-title {
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    color: var(--text-gold) !important;
    letter-spacing: 1px;
    margin: 18px 16px 10px 16px !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

/* 3. CARROUSEL « À LA UNE » */
.carousel {
    display: flex;
    overflow-x: auto;
    gap: 14px;
    padding: 0 16px 10px 16px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}
.carousel::-webkit-scrollbar { display: none; }

.slide {
    flex: 0 0 88%;
    max-width: 320px;
    background: #0f1411 !important;
    border: 1px solid var(--border-gold) !important;
    border-radius: 12px !important;
    overflow: hidden;
    scroll-snap-align: start;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.4);
    cursor: pointer;
}

.slide img {
    width: 100%;
    height: 130px;
    object-fit: cover;
    display: block;
}

.slide-content { padding: 12px; }
.slide-title { font-size: 0.95rem; font-weight: 700; color: #fff; line-height: 1.3; }

/* 4. JETONS « EN CE MOMENT » (3 Colonnes 100% responsive) */
.activity-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 10px !important;
    padding: 0 14px !important;
    margin-bottom: 20px !important;
    width: 100% !important;
}

.activity-card {
    background: transparent !important;
    border: none !important;
    padding: 4px 0 !important;
    text-align: center !important;
    cursor: pointer;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
}

/* 5. GRILLE RUBRIQUES */
.cat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 0 14px;
}

.cat-card {
    background: rgba(8, 38, 24, 0.9) !important;
    border: 1px solid rgba(212, 175, 55, 0.3) !important;
    border-radius: 10px !important;
    padding: 14px 6px !important;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
    cursor: pointer;
}
.cat-card:active {
    background: rgba(13, 56, 36, 0.95) !important;
    transform: scale(0.96);
}
.cat-name {
    color: #f1f5f9 !important;
    font-weight: 600 !important;
    font-size: 0.75rem;
}

/* 6. NAVIGATION BASSE STANDARD (4 Onglets) */
/* VERROUILLAGE BAS SAFARI IOS */
nav.bottom-nav,
nav.bottom-navbis {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    background: #000000 !important; /* Noir pur ou couleur opaque */
    border-top: 1px solid var(--border-gold) !important;
    display: flex !important;
    justify-content: space-around !important;
    align-items: center !important;
    z-index: 9999 !important;
    margin: 0 !important;
    
    /* Hauteur minimale de confort + absorption physique de la safe area */
    padding-top: 8px !important;
    padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 8px) !important;
    box-sizing: border-box !important;
	    min-height: 64px;
}

/* PSEUDO-ÉLÉMENT BLINDE-SAFARI : Remplit le vide sous la barre quoi qu'il arrive */
nav.bottom-nav::after,
nav.bottom-navbis::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 100px;
    background: #000000 !important;
    pointer-events: none;
}

nav.bottom-nav .nav-item {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    padding: 4px 2px !important;
}

nav.bottom-nav .nav-label {
    font-size: 0.66rem !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

nav.bottom-nav .nav-item-center .nav-icon {
    color: var(--partouche-gold-light, #f7e089);
}

nav.bottom-nav .nav-item-center.active .nav-icon {
    color: var(--primary, #c9041b);
}
  /* BANDEAU PUSH CONSENTEMENT */
        #push-banner { margin: 12px 16px; background: linear-gradient(135deg, #1e293b, var(--surface)); border: 1px solid var(--primary); padding: 14px; border-radius: 12px; display: flex; align-items: center; justify-content: space-between; }
        #push-btn { background: var(--primary); color: #fff; border: none; padding: 8px 14px; border-radius: 6px; font-weight: 600; font-size: 0.8rem; cursor: pointer; }
		
		
/* CARROUSEL COMPACT & ÉQUILIBRÉ */
.carousel {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    padding: 0 16px 12px 16px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}
.carousel::-webkit-scrollbar { display: none; }

.slide {
    flex: 0 0 82%;
    max-width: 290px;
    height: 205px; /* Hauteur totale verrouillée */
    background: #0a0f0d !important;
    border: 1px solid var(--border-gold) !important;
    border-radius: 12px !important;
    overflow: hidden;
    scroll-snap-align: start;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.slide img {
    width: 100%;
    height: 125px; /* Hauteur d'image maîtrisée */
    object-fit: cover;
    object-position: center;
    display: block;
    flex-shrink: 0;
}

.slide-content {
    padding: 10px 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.slide-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.25;
    margin: 0;
    /* Coupe proprement sur 2 lignes maximum */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
html {
    background-color: #9e0b1c; /* Rouge Partouche qui baigne la status bar iOS */
}

/* SPLASH SCREEN & TRANSITION OUVERTURE */
#app-splash-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: radial-gradient(circle at 50% 45%, #0d442b 0%, #051a10 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.45s ease-out, visibility 0.45s ease-out;
}

#app-splash-loader.splash-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.splash-ring-container {
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Le liseret rouge et or en rotation continue */
.splash-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: #d4af37;       /* Or Partouche */
    border-right-color: #c9041b;     /* Rouge carmin */
    border-bottom-color: #f7e089;    /* Or éclatant */
    animation: splashSpin 1.1s cubic-bezier(0.55, 0.15, 0.45, 0.85) infinite;
}

/* Halo doux en arrière-plan */
.splash-ring-glow {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201, 4, 27, 0.35) 0%, rgba(212, 175, 55, 0.15) 70%, transparent 100%);
    filter: blur(8px);
    animation: splashPulse 1.6s ease-in-out infinite alternate;
}

/* Médaillon central */
.splash-logo-core {
    width: 82px;
    height: 82px;
    border-radius: 50%;
    background: #c9041b;
    border: 2px solid rgba(212, 175, 55, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.8);
    overflow: hidden;
    z-index: 2;
}

.splash-logo-core img {
    width: 66px;
    height: 66px;
    object-fit: contain;
    border-radius: 12px;
}

.splash-appname {
    margin-top: 20px;
    font-size: 0.95rem;
    font-weight: 800;
    color: #f7e089;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-shadow: 0 2px 6px rgba(0,0,0,0.8);
    opacity: 0.95;
}

/* Animations CSS */
@keyframes splashSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes splashPulse {
    0% { transform: scale(0.92); opacity: 0.5; }
    100% { transform: scale(1.08); opacity: 0.9; }
}

.btn-nav-back { background: var(--primary); color: #fff; border: none; padding: 8px 14px; border-radius: 6px; font-weight: 600; font-size: 0.8rem; cursor: pointer; }

.retour {width: 48px;margin: 0;padding: 0;}

.retour:hover { transform:scale(2); -ms-transform:scale(2); /* IE 9 */ -moz-transform:scale(2); /* Firefox */ -webkit-transform:scale(2); /* Safari and Chrome */ -o-transform:scale(2); /* Opera */ }

:root {
    --primary: #1B4332;
    --partouche-red: #1B4332;
    --partouche-red-dark: #0F2C22;
    --partouche-gold: #B8935A;
    --partouche-gold-light: #f7e089;
    --felt-green: #082d1c;
    --felt-green-pattern: radial-gradient(circle at 50% 30%, #134e35 0%, #062215 100%);
    --surface: #0f291e;
    --border: #1e4635;
    --border-gold: rgba(184, 147, 90, 0.45);
    --text-white: #ffffff;
    --text-dim: #cbd5e1;
    --text-gold: #f7e089;
}

html {
    background-color: #1B4332 !important;
}

header {
    background: linear-gradient(180deg, #1B4332 0%, #0F2C22 100%) !important;
    border-bottom: 2px solid var(--partouche-gold) !important;
}

.logo-sub {
    color: var(--partouche-gold-light) !important;
}

.splash-ring {
    border-top-color: #B8935A !important;
    border-right-color: #2d6a4f !important;
    border-bottom-color: #f7e089 !important;
}

.splash-logo-core {
    background: #1B4332 !important;
}