/* ==========================================================================
   CARDS MEMORY STYLES (Final Layout)
   ========================================================================== */

:root {
    /* --- Variables dynamiques gérées par JS --- */
    --dynamic-card-width: 120px;
    --dynamic-card-height: 170px;
    
    --red-suit: #e11d48;
    --black-suit: #1e293b;
    --card-bg-front: #ffffff;
}

/* FIX : Forcer l'annulation des transitions globales sur les boutons tactiques et leurs icônes */
.icon-btn, 
.settings-btn, 
.icon-btn svg, 
.settings-btn svg,
.back-btn,
.back-btn svg {
    transition: none !important;
    animation: none !important;
}

/* 1. INTERFACE GÉNÉRALE */
.game-interface {
    position: absolute; inset: 0; z-index: 2;
    width: 100%; height: 100%; 
    padding: 1.5rem; 
    box-sizing: border-box; 
    display: flex; 
    flex-direction: column; 
}
.game-interface.visible { opacity: 1; pointer-events: all; }
.game-interface.hidden { display: none; }

#start-overlay.visible ~ .game-interface,
#game-over-overlay.visible ~ .game-interface {
    opacity: 0; pointer-events: none;
}

.game-header > *, .game-actions-row > *, .settings-btn, .icon-btn, .score-box, .input-controls { 
    pointer-events: auto; 
}

/* 2. HEADER */
.game-header {
    width: 100%;
    display: flex; justify-content: space-between; align-items: center;
    flex-shrink: 0;
    margin-bottom: 10px;
}
.score-box { 
    flex-direction: column; 
    width: 72px; /* Calibré sur .icon-btn */
    height: 72px;
    min-width: unset;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}
.label-small { font-size: 0.7rem; text-transform: uppercase; color: var(--text-secondary); font-weight: 700; }
.stat-box { font-family: var(--font-heading); color: var(--text-primary); font-size: 1.6rem; font-weight: 500; line-height: 1; }

.lives-display {
    display: flex;
    align-items: center; 
    justify-content: center;
    gap: 8px;
    height: 100%;
    
    /* --- CENTRAGE ABSOLU --- */
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.lives-display span {
    font-size: 3.5rem; font-weight: 600; line-height: 1;
    color: var(--text-primary);
}

#lives-container {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* NOUVEAU STYLE CŒURS AVEC DÉGRADÉ SVG ET OMBRE PORTÉE */
.heart-icon {
    height: 5.5vh; 
    width: auto;
    min-height: 40px; 
    max-height: 55px;
    overflow: visible !important;
    transition: all 0.3s;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3)); /* L'ombre portée */
}
/* Gestion du cœur vide quand on perd une vie */
.heart-icon.heart-lost .heart-bg {
    fill: var(--border-color) !important; /* Rétablit la marque sombre */
}

.heart-icon.heart-lost .heart-overlay {
    fill: transparent !important; /* Enlève le dégradé brillant */
}

.heart-icon.heart-lost {
    opacity: 0.5; 
    transform: scale(0.9);
    filter: none; /* Enlève l'ombre quand la vie est perdue */
}

/* --- OVERLAY DE STATUT (PRÊT ?) --- */
#status-overlay {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 100;
    cursor: pointer;
}
#status-overlay.hidden { display: none !important; opacity: 0; }

.status-main-text {
    font-family: var(--font-heading); 
    font-size: 5.5rem; 
    font-weight: 500; 
    color: var(--text-primary); 
    letter-spacing: -4px; 
    line-height: 1; 
    transition: opacity 0.2s;
}

.status-sub-text {
    display: flex; align-items: center; justify-content: center;
    gap: 10px; margin-top: 1.5rem;
    font-family: var(--font-body); font-size: 1.1rem;
    color: var(--text-secondary); font-weight: 500;
    text-transform: uppercase; letter-spacing: 1px;
}

.status-sub-text svg {
    width: 24px; height: 24px;
    color: var(--text-primary); 
}

:fullscreen .status-main-text { font-size: 8.5rem; }
:fullscreen .status-sub-text { font-size: 1.5rem; margin-top: 2rem; }
:fullscreen .status-sub-text svg { width: 32px; height: 32px; }

/* FIX DU FLOU POUR ÉCRASER LES FILTRES .disabled */
.blurred, .paused-blur { 
    filter: blur(10px) !important; 
    opacity: 0.3 !important; 
    pointer-events: none !important; 
}


/* 3. ZONE CENTRALE (Cartes) */
.game-center-area {
    flex: 1; 
    width: 100%;
    display: flex;
    flex-direction: column; 
    justify-content: center;
    align-items: center;
    position: relative;
    min-height: 0; 
    padding-bottom: 1rem; 
}

.card-display-area {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center; 
    align-content: center;
    flex-wrap: wrap;
    gap: 10px;
    overflow-y: auto; 
    max-height: 100%;
    padding: 10px;
}

/* --- STYLE DES CARTES --- */
.playing-card {
    width: var(--dynamic-card-width);
    height: var(--dynamic-card-height);
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.4, 0.2, 0.2, 1), opacity 0.3s, width 0.3s, height 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    border-radius: calc(var(--dynamic-card-width) * 0.08);
    flex-shrink: 0;
    transform: perspective(1000px) rotateY(0deg);
    pointer-events: none; 
}

.playing-card.placeholder { opacity: 0.1; transform: scale(0.9); box-shadow: none; border: 2px dashed var(--border-color); }

/* --- INTERACTIVITÉ ET ETATS --- */
.playing-card.waiting-input { cursor: pointer; border: none; pointer-events: auto; }
.playing-card.waiting-input:hover { transform: perspective(1000px) rotateY(180deg); z-index: 15; }
.playing-card.active-slot { border: none; box-shadow: 0 4px 15px rgba(0,0,0,0.15); transform: perspective(1000px) rotateY(180deg); z-index: 20; pointer-events: none; }
.playing-card.solved { cursor: default; box-shadow: 0 2px 8px rgba(0,0,0,0.1); pointer-events: none; }

/* --- OVERLAY POINT D'INTERROGATION --- */
.question-overlay {
    position: absolute; inset: 0; display: flex; justify-content: center; align-items: center;
    font-family: var(--font-heading, sans-serif); font-size: 4rem; font-weight: 700; color: #ffffff;
    background-color: transparent; border-radius: calc(var(--dynamic-card-width) * 0.08); opacity: 0;
    transition: opacity 0.2s ease; pointer-events: none; z-index: 10;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5); backface-visibility: hidden; transform: rotateY(180deg); 
}
.playing-card.active-slot .question-overlay { opacity: 1; }

/* --- STRUCTURE INTERNE CARTE --- */
.card-front, .card-back {
    position: absolute; width: 100%; height: 100%; backface-visibility: hidden; 
    border-radius: calc(var(--dynamic-card-width) * 0.08); overflow: hidden;
}

/* --- DOS DE LA CARTE --- */
.card-back {
    background-color: var(--accent-color); transform: rotateY(180deg); display: flex; align-items: center; justify-content: center;
    border: calc(var(--dynamic-card-width) * 0.05) solid #fff;
}
.pattern-inner {
    width: 100%; height: 100%;
    background-image: 
        linear-gradient(45deg, rgba(255,255,255,0.2) 25%, transparent 25%, transparent 75%, rgba(255,255,255,0.2) 75%, rgba(255,255,255,0.2)),
        linear-gradient(45deg, rgba(255,255,255,0.2) 25%, transparent 25%, transparent 75%, rgba(255,255,255,0.2) 75%, rgba(255,255,255,0.2));
    background-size: 20px 20px; background-position: 0 0, 10px 10px;
}

/* --- FACE DE LA CARTE --- */
.card-front {
    transform: rotateY(0deg); background-color: var(--card-bg-front);
    font-family: 'Space Grotesk', sans-serif; color: var(--black-suit); border: 1px solid #cbd5e1;
}
.card-front.face-card-mode { border: none; padding: 0; display: flex; justify-content: center; align-items: center; background-color: var(--card-bg-front); }
.card-front.red-suit { color: var(--red-suit); }
.card-front.black-suit { color: var(--black-suit); }

.card-corner {
    position: absolute; display: flex; flex-direction: column; align-items: center; justify-content: center;
    line-height: 1; font-weight: 700; width: calc(var(--dynamic-card-width) * 0.2); padding-top: calc(var(--dynamic-card-width) * 0.05);
}
.card-corner .corner-val { font-size: calc(var(--dynamic-card-width) * 0.22); letter-spacing: -1px; }
.card-corner .corner-suit { font-size: calc(var(--dynamic-card-width) * 0.10); margin-top: 0; }
.corner-top-left { top: 0; left: 0; }
.corner-bottom-right { bottom: 0; right: 0; transform: rotate(180deg); }

.card-inner-layout {
    position: absolute; left: 0; right: 0; top: calc(var(--dynamic-card-width) * 0.15); bottom: calc(var(--dynamic-card-width) * 0.15);
    padding: 0 calc(var(--dynamic-card-width) * 0.18); display: flex; justify-content: space-between; align-items: stretch;
}
.pip-col { display: flex; flex-direction: column; justify-content: space-between; align-items: center; flex: 1 1 0px; width: 0; }
.pip-col.mid-col { justify-content: center; gap: 15%; }
.pip-symbol { font-size: calc(var(--dynamic-card-width) * 0.22); line-height: 1; }
.pip-symbol.inverted { transform: rotate(180deg); }
.pip-symbol.transparent { opacity: 0; }
.layout-ace { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.big-ace-symbol { font-size: calc(var(--dynamic-card-width) * 0.6); }

.face-card-wrapper {
    position: absolute; inset: calc(var(--dynamic-card-width) * 0.5); display: flex; flex-direction: column; justify-content: center; align-items: center;
}
.face-half { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; height: 50%; width: 100%; position: relative; overflow: hidden; }
.face-half.bottom { transform: rotate(180deg); margin-top: -1px; }
.face-drawing-minimal { width: 100%; height: 100%; overflow: visible; }
.face-suit-symbol { position: absolute; bottom: 5%; font-size: calc(var(--dynamic-card-width) * 0.3); line-height: 1; z-index: 10; filter: drop-shadow(0 1px 1px rgba(255,255,255,0.9)); }

.playing-card.flipped { transform: perspective(1000px) rotateY(180deg); }
.playing-card.hidden { opacity: 0; transform: scale(0.5); pointer-events: none; }
.game-board.disable-flip .playing-card { transition: none !important; }
.card-corner .corner-val.is-ten { display: flex; align-items: center; transform: scaleX(0.85); letter-spacing: -2px; }
.narrow-zero { display: inline-block; transform: scaleX(0.90); transform-origin: left center; }


/* 4. BARRE D'ACTIONS (Générale) */
.game-actions-row { 
    position: absolute; bottom: 0; left: 0; right: 0; width: 100%; padding: 1.5rem; box-sizing: border-box;
    display: flex; justify-content: space-between; align-items: flex-end; z-index: 60; pointer-events: none; 
}
.left-actions { display: flex; gap: 10px; pointer-events: auto; }
.right-actions { display: flex; justify-content: flex-end; pointer-events: auto; }

/* Masquer le bouton mobile sur la version PC */
.mobile-validate-container { display: none; }


/* 5. CLAVIER (Input Controls) */
.input-controls {
    background: var(--bg-main); border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 10px;
    display: flex; flex-direction: column; gap: 8px; align-items: center; transition: transform 0.3s ease, opacity 0.3s ease, filter 0.3s ease;
    z-index: 50; box-shadow: 0 -4px 20px rgba(0,0,0,0.1); width: 100%; max-width: 500px; margin: 0 auto; flex-shrink: 0;
}
html.global-opaque .input-controls { background: var(--card-bg); }
.input-controls.disabled { opacity: 0.5; pointer-events: none; filter: grayscale(0.8); }

.controls-layout { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.values-container { display: flex; flex-direction: column; gap: 6px; width: 100%; }

.values-row { width: 100%; gap: 6px; }
.val-row-1 { display: grid; grid-template-columns: repeat(7, 1fr); }
.val-row-2 { display: flex; justify-content: center; }
.val-row-2 .game-btn { width: calc((100% - 36px) / 7); flex: 0 0 auto; }
.suits-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }

:fullscreen .input-controls { max-width: 850px; }
:fullscreen .values-container { display: grid; grid-template-columns: repeat(13, 1fr); gap: 6px; width: 100%; }
:fullscreen .val-row-1, :fullscreen .val-row-2 { display: contents; }
:fullscreen .val-row-2 .game-btn { width: 100%; flex: 1; }
:fullscreen .suits-row { max-width: 400px; width: 100%; margin: 0 auto; }

.game-btn {
    background: var(--bg-main); border: 2px solid var(--border-color); border-radius: 6px;
    font-family: var(--font-heading); font-weight: 600; font-size: 1rem; color: var(--text-primary); cursor: pointer; 
    transition: all 0.1s; display: flex; align-items: center; justify-content: center;
    width: 100%; max-width: 100%; aspect-ratio: 1/1; height: auto;
}
.game-btn[data-suit] { font-size: 1.4rem; height: 38px; aspect-ratio: auto; max-width: none; }
.game-btn:hover { border-color: var(--text-secondary); }
.game-btn.selected { border-color: var(--accent-color); box-shadow: 0 2px 8px var(--accent-glow); }
.game-btn[data-suit="hearts"], .game-btn[data-suit="diamonds"] { color: var(--red-suit); }
.game-btn[data-suit="spades"], .game-btn[data-suit="clubs"] { color: var(--black-suit); }
html.dark-dominant .game-btn[data-suit="spades"], html.dark-dominant .game-btn[data-suit="clubs"] { color: #fff; }

.validate-btn {
    width: 100%; max-width: 300px; margin: 0 auto; height: 42px; background-color: var(--accent-color); color: white; border: none; border-radius: 6px; 
    font-family: var(--font-heading); font-weight: 700; letter-spacing: 1px;
    cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px;
    pointer-events: auto;
    transition: filter 0.3s ease, opacity 0.3s ease;
}
.validate-btn:disabled { opacity: 0.3 !important; cursor: not-allowed; background-color: var(--border-color); color: var(--text-secondary);}

/* 6. CLASSES MODE SWITCH & RESULTATS */
select {
    background-color: var(--bg-main); color: var(--text-primary);
    border: 1px solid var(--border-color); padding: 8px; border-radius: var(--radius-md);
    font-family: var(--font-body); font-size: 1rem; cursor: pointer; outline: none;
}
select:focus { border-color: var(--accent-color); box-shadow: 0 0 0 2px var(--accent-glow); }

.mode-switch-wrapper {
    display: flex; position: relative; background-color: var(--bg-main);
    border: 1px solid var(--border-color); border-radius: var(--radius-md);
    padding: 4px; margin-bottom: 1.5rem;
}
.mode-switch-wrapper input[type="radio"] { display: none; }
.mode-switch-wrapper label {
    flex: 1; text-align: center; padding: 10px 0; font-family: var(--font-heading); font-weight: 600; font-size: 0.9rem;
    color: var(--text-secondary); cursor: pointer; z-index: 2; margin: 0; transition: color 0.3s ease; text-transform: uppercase; letter-spacing: 1px;
}
.mode-switch-wrapper input:checked + label { color: var(--text-primary); }
.mode-slider {
    position: absolute; top: 4px; bottom: 4px; width: calc(50% - 4px);
    background-color: var(--card-bg); border-radius: 6px; z-index: 1;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.mode-switch-wrapper input[value="sandbox"]:checked ~ .mode-slider { transform: translateX(100%); }

.results-view { width: 100%; display: flex; flex-direction: column; align-items: center; }
.results-view.hidden { display: none !important; }

.centered-score-item { text-align: center; margin-bottom: 3rem; }
.centered-score-item .res-label { font-size: 1.2rem; font-weight: 600; text-transform: uppercase; letter-spacing: 2px; opacity: 0.7; display: block; margin-bottom: 0.8rem; }
.big-score-container { display: flex; align-items: baseline; justify-content: center; position: relative; }
#results-ranked .res-value.big, #results-sandbox .res-value.big { font-size: 5.5rem; font-weight: 700; line-height: 1; font-family: var(--font-heading); }
.score-unit { font-size: 1.4rem; color: var(--accent-color); margin-left: 8px; font-family: var(--font-heading); font-weight: 500; }

.distribution-chart-container {
    position: relative; width: 100%; max-width: 650px; height: 180px;
    margin: 1.5rem 0 2rem 0;
    border-bottom: 2px solid var(--border-color); cursor: crosshair;
}
.curve-svg { width: 100%; height: 100%; overflow: visible; }
.axis-label { position: absolute; bottom: -25px; font-family: var(--font-body); font-size: 0.8rem; color: var(--text-secondary); }
.axis-label.left { left: 0; }
.axis-label.right { right: 0; }
.hover-line { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--text-primary); transform: translateX(-50%); pointer-events: none; opacity: 0.3; z-index: 3; transition: opacity 0.2s ease; }
.chart-tooltip { position: absolute; top: -55px; transform: translateX(-50%); background: var(--card-bg); border: 1px solid var(--border-color); padding: 6px 12px; border-radius: var(--radius-md); font-family: var(--font-body); font-size: 0.9rem; color: var(--text-primary); pointer-events: none; white-space: nowrap; z-index: 10; box-shadow: var(--shadow-card); text-align: center; line-height: 1.4; transition: opacity 0.2s ease, visibility 0.2s ease; }
.hover-line.hidden, .chart-tooltip.hidden { opacity: 0 !important; visibility: hidden !important; }
.score-marker { position: absolute; top: 0; bottom: 0; display: flex; flex-direction: column; align-items: center; transform: translateX(-50%); pointer-events: none; transition: left 0.5s ease-out; }
.marker-line { width: 2px; height: 100%; border-left: 2px dashed currentColor; }
.marker-label { position: absolute; font-family: var(--font-heading); font-size: 0.8rem; font-weight: 700; padding: 2px 6px; border-radius: 4px; text-transform: uppercase; white-space: nowrap; }
.marker-current { color: var(--accent-color); z-index: 2; }
.marker-current .marker-label { bottom: 100%; margin-bottom: 5px; background: var(--bg-main); border: 1px solid currentColor;}
.marker-best { color: var(--text-tertiary); z-index: 1; opacity: 1;}
.marker-best .marker-label { top: 100%; margin-top: 5px; color: var(--text-secondary); }

/* ==========================================================================
   Bouton pour quitter le plein écran (Fix d'affichage global)
   ========================================================================== */
.exit-fs-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    display: none; 
    padding: 8px;
    z-index: 10000;
    transition: color var(--transition-fast);
}
.exit-fs-btn svg { width: 32px; height: 32px; }
.exit-fs-btn:hover { color: var(--accent-color-secondary); }
.game-board:fullscreen .exit-fs-btn { display: block; }
.ios-fullscreen .exit-fs-btn { display: block !important; }

/* ==========================================================================
   RESPONSIVE SPÉCIFIQUE & FALLBACK PLEIN ECRAN
   ========================================================================== */

/* Layout d'étirement global (Desktop et Mobile) */
.game-page .main-content {
    display: flex;
    flex-direction: column;
}

.game-board {
    flex: 1 0 auto; 
    display: flex;
    flex-direction: column;
    min-height: 600px;
    margin-bottom: 0 !important; 
}

#game-over-overlay .overlay-content {
    height: auto;
    min-height: 100%;
    padding: 4rem 0; 
}

/* MEDIA QUERIES */
@media (max-width: 900px) { 
    .status-main-text { font-size: 5rem; }
}

@media (max-width: 700px) {
    .score-box { 
        width: 60px !important; 
        height: 60px !important; 
        min-width: unset !important; 
        padding: 0 !important; 
    }
    /* --- BASCULE DES BOUTONS DE VALIDATION --- */
    .desktop-validate-btn { display: none !important; }
    .mobile-validate-container { display: flex !important; flex: 1; justify-content: center; padding: 0 10px; pointer-events: auto; }
    
    .validate-btn.mobile-validate-btn {
        width: 100%;
        max-width: 300px;
        height: 55px; /* Hauteur ajustée pour mobile */
        margin: 0;
        font-size: 1.1rem;
    }

    /* La zone de jeu garde son espace normal */
    .game-interface { padding: 0.5rem 0.5rem 0 0.5rem; } 
    
    /* Le clavier est affiné et surélevé via le padding pour faire de la place aux boutons en superposition */
    .input-controls {
        max-width: 100%;
        border-radius: 15px 15px 0 0;
        border-left: none; border-right: none; border-bottom: none;
        padding: 10px 10px 80px 10px; /* Espace crucial pour la ligne de boutons */
    }
    
    /* La barre d'action vient se positionner en ABSOLUTE par dessus le bas du clavier ! */
    .game-actions-row {
        position: absolute; 
        bottom: 15px; 
        left: 15px; 
        right: 15px; 
        width: auto;
        padding: 0;
        margin: 0; 
        align-items: center; 
        pointer-events: none; /* Empêche le conteneur de bloquer les clics */
    }
    
    .left-actions, .right-actions { width: auto; align-items: center; }
    
    #results-ranked .res-value.big, #results-sandbox .res-value.big { font-size: 4.5rem; }
    .score-unit { font-size: 1.2rem; }
    .distribution-chart-container { height: 140px; margin-top: 1.5rem; margin-bottom: 2.5rem; }
    
    .status-main-text { font-size: 4rem; }
    .status-sub-text { font-size: 0.9rem; flex-wrap: wrap; }
    
    body.game-page { overscroll-behavior: none; }
    #settings-panel { touch-action: auto; overscroll-behavior: contain; }

    /* FIX 1 : Main Content aligné en HAUT (Mobile) */
    .game-page .main-content {
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important; 
        height: auto !important; 
        min-height: calc(100svh - 80px) !important;
        padding-top: 80px !important;
        padding-bottom: 0 !important; 
        padding-left: 0 !important; 
        padding-right: 0 !important;
    }

    /* FIX 2 : Plateau remplit tout jusqu'au footer */
    .game-board { 
        flex: 1 1 100% !important;     
        display: flex !important;      
        flex-direction: column !important; 
        height: auto !important;
        min-height: calc(100svh - 80px) !important; 
        max-height: none !important;
        margin: 0 !important;          
        border-radius: 0;              
    }

    /* FIX 3 : Overlay de fin avec padding réel (Scroll possible si petit écran) */
    #game-over-overlay { overflow-y: auto !important; }
    #game-over-overlay .overlay-content {
        height: auto !important;
        min-height: 100% !important;
        padding: 4rem 0 3rem 0 !important; 
        justify-content: center !important;
        gap: 2.5rem !important;
    }

    /* Ajustement du padding quand on passe en plein écran ou faux plein écran */
    .game-page .game-board:fullscreen .game-interface,
    .ios-fullscreen .game-interface {
        padding-top: 3rem !important; 
        padding-bottom: 2rem !important;
    }
}

/* Fullscreen Natif PC : Fixe les bases */
.game-board:fullscreen {
    width: 100vw !important;
    height: 100vh !important;
    max-width: none !important;
    max-height: none !important;
    border-radius: 0 !important;
    border: none !important;
    background-color: var(--bg-main);
    display: flex !important;
    flex-direction: column !important;
}

.ios-fullscreen {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100dvh !important;
    max-width: none !important;
    max-height: none !important;
    z-index: 9999 !important;
    border-radius: 0 !important;
    border: none !important;
    background-color: var(--bg-main) !important;
    display: flex !important;
    flex-direction: column !important;
}

.ios-fullscreen .exit-fs-btn { display: block !important; }
.ios-fullscreen ~ * #icon-expand { display: none !important; }
.ios-fullscreen ~ * #icon-compress { display: block !important; }


/* ==========================================================================
   AFFICHAGE DU NOUVEAU RECORD
   ========================================================================== */
.new-record, 
#new-record-msg {
    color: var(--record-color, #FFA914) !important;
}

.new-record svg {
    color: var(--record-color, #FFA914) !important;
}

.input-select, select {
    background-color: var(--bg-main); color: var(--text-primary);
    border: 1px solid var(--border-color); padding: 8px; border-radius: var(--radius-md);
    font-family: var(--font-body); font-size: 0.95rem; cursor: pointer; outline: none;
    width: auto; min-width: 140px; max-width: 200px;
    text-align: center;
    text-align-last: center;
}
