/* === Escape Mail — Design Immersif Plein Écran === */

:root {
    --em-bg: #0a0a0f;
    --em-bg-card: #12121a;
    --em-bg-card-hover: #1a1a28;
    --em-border: #2a2a3a;
    --em-primary: #c9a84c;
    --em-primary-hover: #dabb5e;
    --em-text: #e0ddd5;
    --em-text-muted: #888;
    --em-success: #4caf50;
    --em-error: #e74c3c;
    --em-hint: #f39c12;
    --em-font: 'Georgia', 'Times New Roman', serif;
    --em-font-ui: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* === Navbar === */

.em-navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 40px;
    background: var(--em-bg);
    border-bottom: 1px solid var(--em-border);
    position: sticky;
    top: 0;
    z-index: 100;
    font-family: var(--em-font-ui);
}

.em-navbar-brand {
    color: var(--em-primary);
    font-family: var(--em-font);
    font-size: 20px;
    letter-spacing: 2px;
    text-decoration: none;
    transition: opacity 0.2s;
}

.em-navbar-brand:hover {
    opacity: 0.8;
    color: var(--em-primary);
}

.em-navbar-links {
    display: flex;
    gap: 28px;
    align-items: center;
}

.em-navbar-links a {
    color: var(--em-text-muted);
    text-decoration: none;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: color 0.2s;
}

.em-navbar-links a:hover {
    color: var(--em-primary);
}

/* === Container Plein Écran === */

.em-container {
    min-height: 100vh;
    background: var(--em-bg);
    color: var(--em-text);
    font-family: var(--em-font);
    padding: 0;
    margin: 0;
    max-width: 100%;
    position: relative;
    overflow-x: hidden;
}

.em-container::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(100, 80, 40, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(60, 50, 80, 0.08) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.em-container > * {
    position: relative;
    z-index: 1;
}

.em-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    font-size: 18px;
    color: var(--em-text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-family: var(--em-font-ui);
    animation: em-pulse 2s ease-in-out infinite;
}

@keyframes em-pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* === LOBBY — Grille Scénarios === */

.em-scenarios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 32px;
    padding: 60px 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.em-scenario-card {
    background: var(--em-bg-card);
    border: 1px solid var(--em-border);
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.4s ease;
    cursor: default;
}

.em-scenario-card:hover {
    transform: translateY(-8px);
    border-color: var(--em-primary);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(201, 168, 76, 0.05);
}

.em-scenario-img {
    height: 240px;
    background: linear-gradient(180deg, #1a1520 0%, #0d0d15 50%, #0a0a0f 100%);
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.em-scenario-img::after {
    content: '🔒';
    font-size: 48px;
    opacity: 0.3;
}

.em-scenario-body {
    padding: 28px;
}

.em-scenario-title {
    margin: 0 0 12px;
    font-size: 26px;
    color: var(--em-primary);
    font-family: var(--em-font);
    font-weight: normal;
    letter-spacing: 1px;
}

.em-scenario-desc {
    color: var(--em-text-muted);
    font-size: 15px;
    line-height: 1.8;
    margin: 0 0 20px;
    font-family: var(--em-font);
}

.em-scenario-meta {
    margin-bottom: 24px;
}

.em-difficulty-badge {
    display: inline-block;
    padding: 5px 14px;
    border: 1px solid;
    border-radius: 2px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: var(--em-font-ui);
}

.em-difficulty-easy {
    border-color: #4caf50;
    color: #4caf50;
}

.em-difficulty-medium {
    border-color: var(--em-primary);
    color: var(--em-primary);
}

.em-difficulty-hard {
    border-color: var(--em-error);
    color: var(--em-error);
}

/* === Boutons === */

.em-btn {
    display: inline-block;
    padding: 14px 32px;
    border: none;
    border-radius: 2px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: var(--em-font-ui);
}

.em-btn:active {
    transform: scale(0.97);
}

.em-btn-primary {
    background: var(--em-primary);
    color: #0a0a0f;
}

.em-btn-primary:hover {
    background: var(--em-primary-hover);
    color: #0a0a0f;
    box-shadow: 0 4px 20px rgba(201, 168, 76, 0.3);
}

.em-btn-secondary {
    background: transparent;
    color: var(--em-primary);
    border: 1px solid var(--em-primary);
}

.em-btn-secondary:hover {
    background: var(--em-primary);
    color: #0a0a0f;
}

.em-btn-hint {
    background: transparent;
    color: var(--em-hint);
    border: 1px solid var(--em-hint);
    padding: 10px 20px;
    font-size: 12px;
}

.em-btn-hint:hover {
    background: var(--em-hint);
    color: #0a0a0f;
}

.em-btn-hint:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    border-color: var(--em-text-muted);
    color: var(--em-text-muted);
}

.em-btn-hint:disabled:hover {
    background: transparent;
    color: var(--em-text-muted);
}

.em-completed-badge {
    display: inline-block;
    padding: 10px 20px;
    border: 1px solid var(--em-success);
    color: var(--em-success);
    border-radius: 2px;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: var(--em-font-ui);
}

/* === PAGE DE JEU — Plein Écran === */

#em-play.em-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.em-progress-bar-container {
    width: 100%;
    max-width: 700px;
    background: var(--em-border);
    border-radius: 0;
    height: 3px;
    margin-bottom: 8px;
    overflow: hidden;
}

.em-progress-bar {
    height: 100%;
    background: var(--em-primary);
    transition: width 0.8s ease;
    width: 0%;
}

.em-progress-text {
    text-align: center;
    font-size: 12px;
    color: var(--em-text-muted);
    margin: 0 0 40px;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-family: var(--em-font-ui);
}

.em-scene-card {
    background: var(--em-bg-card);
    border: 1px solid var(--em-border);
    border-radius: 4px;
    padding: 48px;
    width: 100%;
    max-width: 700px;
    margin-bottom: 24px;
}

.em-scene-title {
    color: var(--em-primary);
    margin: 0 0 24px;
    font-size: 28px;
    font-weight: normal;
    letter-spacing: 1px;
    text-align: center;
    font-family: var(--em-font);
}

.em-scene-riddle {
    color: var(--em-text);
    font-size: 17px;
    line-height: 1.9;
    margin-bottom: 36px;
    padding: 24px;
    background: rgba(201, 168, 76, 0.03);
    border-left: 2px solid var(--em-primary);
    font-family: var(--em-font);
    font-style: italic;
}

.em-answer-form {
    margin-bottom: 24px;
}

.em-input-group {
    display: flex;
    gap: 12px;
}

.em-input {
    flex: 1;
    padding: 16px 20px;
    border: 1px solid var(--em-border);
    border-radius: 2px;
    font-size: 16px;
    transition: border-color 0.3s;
    outline: none;
    background: var(--em-bg);
    color: var(--em-text);
    font-family: var(--em-font);
    letter-spacing: 1px;
}

.em-input:focus {
    border-color: var(--em-primary);
    box-shadow: 0 0 20px rgba(201, 168, 76, 0.1);
}

.em-input::placeholder {
    color: var(--em-text-muted);
    font-style: italic;
}

/* === Feedback === */

.em-feedback {
    padding: 16px 20px;
    border-radius: 2px;
    margin-bottom: 20px;
    font-family: var(--em-font-ui);
    font-size: 14px;
    text-align: center;
}

.em-feedback p {
    margin: 0;
}

.em-feedback-success {
    background: rgba(76, 175, 80, 0.1);
    color: var(--em-success);
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.em-feedback-error {
    background: rgba(231, 76, 60, 0.1);
    color: var(--em-error);
    border: 1px solid rgba(231, 76, 60, 0.3);
    animation: em-shake 0.5s;
}

@keyframes em-shake {
    0%, 100% { transform: translateX(0); }
    15%, 55% { transform: translateX(-8px); }
    35%, 75% { transform: translateX(8px); }
}

/* === Indices === */

.em-hints-section {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--em-border);
}

.em-hints-list {
    margin-top: 16px;
}

.em-hint-item {
    background: rgba(243, 156, 18, 0.06);
    border: 1px solid rgba(243, 156, 18, 0.2);
    border-radius: 2px;
    padding: 14px 18px;
    margin-bottom: 10px;
    font-size: 14px;
    color: var(--em-hint);
    font-family: var(--em-font);
    font-style: italic;
}

/* === Scene Content (images from WP editor) === */

.em-scene-content {
    margin-bottom: 24px;
    text-align: center;
}

.em-scene-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    border: 1px solid var(--em-border);
    margin: 8px 0;
}

.em-scene-content p {
    color: var(--em-text);
    font-size: 16px;
    line-height: 1.8;
    margin: 12px 0;
}

/* === Drag & Drop Order Zone === */

.em-order-zone {
    margin-bottom: 24px;
}

.em-order-instruction {
    font-size: 13px;
    color: var(--em-text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: var(--em-font-ui);
    margin: 0 0 16px;
    text-align: center;
}

.em-order-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 420px;
    margin: 0 auto;
}

.em-order-item {
    background: var(--em-bg);
    border: 1px solid var(--em-border);
    border-radius: 2px;
    padding: 12px 16px;
    font-size: 16px;
    color: var(--em-text);
    font-family: var(--em-font);
    display: flex;
    align-items: center;
    justify-content: space-between;
    user-select: none;
    transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.em-order-item:hover {
    border-color: var(--em-primary);
    background: var(--em-bg-card-hover);
}

.em-order-item-label {
    flex: 1;
    text-align: center;
}

.em-order-arrows {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-left: 12px;
}

.em-order-arrow-btn {
    background: transparent;
    border: 1px solid var(--em-border);
    color: var(--em-text-muted);
    width: 32px;
    height: 28px;
    cursor: pointer;
    border-radius: 2px;
    font-size: 12px;
    line-height: 1;
    transition: all 0.2s;
    padding: 0;
}

.em-order-arrow-btn:hover {
    background: var(--em-primary);
    color: var(--em-bg);
    border-color: var(--em-primary);
}

.em-order-moved {
    border-color: var(--em-primary);
    background: rgba(201, 168, 76, 0.08);
    transform: scale(1.02);
}

/* === History (past clues) === */

.em-history {
    width: 100%;
    max-width: 700px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--em-border);
}

.em-history-title {
    font-size: 16px;
    color: var(--em-primary);
    font-family: var(--em-font);
    font-weight: normal;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-align: center;
    margin: 0 0 20px;
}

.em-history-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.em-history-card {
    background: var(--em-bg-card);
    border: 1px solid var(--em-border);
    border-radius: 4px;
    padding: 20px;
}

.em-history-card-title {
    font-size: 15px;
    color: var(--em-primary);
    font-family: var(--em-font);
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.em-history-card-riddle {
    font-size: 14px;
    color: var(--em-text-muted);
    font-style: italic;
    line-height: 1.7;
    margin-bottom: 10px;
}

.em-history-card-hints {
    padding-top: 8px;
    border-top: 1px solid rgba(201, 168, 76, 0.1);
}

.em-history-hint {
    font-size: 13px;
    color: var(--em-hint);
    font-style: italic;
    padding: 4px 0;
    font-family: var(--em-font);
}

/* === Score === */

.em-score-display {
    text-align: center;
    font-size: 13px;
    color: var(--em-text-muted);
    padding: 16px;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-family: var(--em-font-ui);
}

.em-score-display span {
    font-weight: 700;
    color: var(--em-primary);
    font-size: 22px;
}

/* === Écran attente email === */

.em-wait-card {
    text-align: center;
    background: var(--em-bg-card);
    border: 1px solid var(--em-border);
    border-radius: 4px;
    padding: 60px 48px;
    max-width: 550px;
    width: 100%;
    margin: 0 auto;
}

.em-wait-icon {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.9;
    animation: em-float 3s ease-in-out infinite;
}

.em-wait-card h2 {
    font-size: 28px;
    color: var(--em-primary);
    margin: 0 0 16px;
    font-family: var(--em-font);
    font-weight: normal;
    letter-spacing: 1px;
}

.em-wait-score {
    font-size: 18px;
    color: var(--em-success);
    font-family: var(--em-font-ui);
    font-weight: 700;
    margin: 0 0 8px;
}

.em-wait-progress {
    font-size: 13px;
    color: var(--em-text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: var(--em-font-ui);
    margin: 0 0 8px;
}

.em-wait-message {
    font-size: 16px;
    color: var(--em-text);
    line-height: 1.8;
    font-style: italic;
    margin: 24px 0 0;
    font-family: var(--em-font);
}

/* === Écran de fin === */

.em-completed-card {
    text-align: center;
    background: var(--em-bg-card);
    border: 1px solid var(--em-border);
    border-radius: 4px;
    padding: 80px 48px;
    max-width: 600px;
    width: 100%;
}

.em-completed-card h2 {
    font-size: 36px;
    color: var(--em-primary);
    margin: 0 0 16px;
    font-family: var(--em-font);
    font-weight: normal;
    letter-spacing: 2px;
}

.em-completed-card p {
    color: var(--em-text-muted);
    font-size: 16px;
}

.em-final-score {
    font-size: 18px;
    margin: 24px 0 36px;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-family: var(--em-font-ui);
}

.em-final-score span {
    font-weight: 700;
    color: var(--em-primary);
    font-size: 36px;
    display: block;
    margin-top: 8px;
}

/* === Profil === */

#em-profile.em-container {
    padding: 60px 40px;
    max-width: 1000px;
    margin: 0 auto;
    min-height: 100vh;
}

#em-profile h2 {
    color: var(--em-primary);
    font-family: var(--em-font);
    font-weight: normal;
    font-size: 32px;
    letter-spacing: 1px;
    margin-bottom: 32px;
}

.em-profile-games {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.em-profile-game-card {
    background: var(--em-bg-card);
    border: 1px solid var(--em-border);
    border-radius: 4px;
    padding: 24px;
    transition: border-color 0.3s;
}

.em-profile-game-card:hover {
    border-color: var(--em-primary);
}

.em-profile-game-card h3 {
    margin: 0 0 12px;
    color: var(--em-text);
    font-family: var(--em-font);
    font-weight: normal;
    font-size: 18px;
}

.em-profile-status {
    display: inline-block;
    padding: 4px 12px;
    border: 1px solid;
    border-radius: 2px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: var(--em-font-ui);
}

.em-status-active { border-color: #3498db; color: #3498db; }
.em-status-completed { border-color: var(--em-success); color: var(--em-success); }
.em-status-paused { border-color: var(--em-hint); color: var(--em-hint); }
.em-status-abandoned { border-color: var(--em-error); color: var(--em-error); }

.em-profile-date {
    font-size: 12px;
    color: var(--em-text-muted);
    font-family: var(--em-font-ui);
}

/* === Login required === */

.em-login-required {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
    font-size: 18px;
}

.em-login-required a {
    color: var(--em-primary);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid var(--em-primary);
}

.em-login-required a:hover {
    color: var(--em-primary-hover);
}

/* === No scenarios === */

#em-no-scenarios {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    text-align: center;
    font-size: 18px;
    color: var(--em-text-muted);
    font-style: italic;
}

/* === HOME PAGE === */

.em-home {
    background: var(--em-bg);
    color: var(--em-text);
    font-family: var(--em-font);
}

/* Hero */
.em-hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: 40px 20px;
}

.em-hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(201, 168, 76, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(60, 50, 80, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.em-hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
}

.em-hero-subtitle {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--em-text-muted);
    font-family: var(--em-font-ui);
    margin: 0 0 24px;
}

.em-hero-title {
    font-size: 80px;
    font-weight: normal;
    color: var(--em-text);
    letter-spacing: 12px;
    line-height: 1.1;
    margin: 0 0 32px;
    font-family: var(--em-font);
}

.em-hero-title span {
    color: var(--em-primary);
}

.em-hero-desc {
    font-size: 18px;
    line-height: 1.8;
    color: var(--em-text-muted);
    margin: 0 0 40px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.em-hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.em-hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--em-text-muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-family: var(--em-font-ui);
    animation: em-float 3s ease-in-out infinite;
}

.em-scroll-arrow {
    width: 1px;
    height: 40px;
    background: var(--em-border);
    margin: 12px auto 0;
    position: relative;
}

.em-scroll-arrow::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -3px;
    width: 7px;
    height: 7px;
    border-right: 1px solid var(--em-text-muted);
    border-bottom: 1px solid var(--em-text-muted);
    transform: rotate(45deg);
}

@keyframes em-float {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* How it works */
.em-how-it-works {
    padding: 100px 40px;
    max-width: 1100px;
    margin: 0 auto;
}

.em-section-title {
    text-align: center;
    font-size: 36px;
    color: var(--em-primary);
    font-weight: normal;
    letter-spacing: 2px;
    margin: 0 0 60px;
}

.em-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.em-step {
    text-align: center;
    padding: 32px 20px;
    position: relative;
}

.em-step-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--em-border);
    font-family: var(--em-font-ui);
    margin-bottom: 16px;
    line-height: 1;
}

.em-step h3 {
    font-size: 18px;
    color: var(--em-text);
    font-weight: normal;
    margin: 0 0 12px;
    letter-spacing: 1px;
}

.em-step p {
    font-size: 14px;
    color: var(--em-text-muted);
    line-height: 1.7;
    margin: 0;
    font-family: var(--em-font-ui);
}

/* Features */
.em-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 40px 100px;
}

.em-feature {
    background: var(--em-bg-card);
    border: 1px solid var(--em-border);
    border-radius: 4px;
    padding: 36px;
    transition: border-color 0.3s;
}

.em-feature:hover {
    border-color: var(--em-primary);
}

.em-feature h3 {
    font-size: 20px;
    color: var(--em-text);
    font-weight: normal;
    margin: 0 0 12px;
}

.em-feature p {
    font-size: 15px;
    color: var(--em-text-muted);
    line-height: 1.7;
    margin: 0;
}

/* CTA section */
.em-cta-section {
    text-align: center;
    padding: 100px 40px;
    border-top: 1px solid var(--em-border);
}

.em-cta-section h2 {
    font-size: 36px;
    color: var(--em-primary);
    font-weight: normal;
    letter-spacing: 2px;
    margin: 0 0 16px;
}

.em-cta-section p {
    font-size: 18px;
    color: var(--em-text-muted);
    margin: 0 0 36px;
}

/* === Auth Pages (Login / Register) === */

.em-auth-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 40px 20px;
    background: var(--em-bg);
}

.em-auth-card {
    background: var(--em-bg-card);
    border: 1px solid var(--em-border);
    border-radius: 4px;
    padding: 48px;
    width: 100%;
    max-width: 420px;
    text-align: center;
}

.em-auth-card h2 {
    color: var(--em-primary);
    font-family: var(--em-font);
    font-weight: normal;
    font-size: 28px;
    letter-spacing: 2px;
    margin: 0 0 32px;
}

.em-auth-form {
    text-align: left;
}

.em-form-group {
    margin-bottom: 20px;
}

.em-form-group label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--em-text-muted);
    margin-bottom: 8px;
    font-family: var(--em-font-ui);
}

.em-form-group .em-input {
    width: 100%;
    box-sizing: border-box;
}

.em-remember {
    font-size: 13px;
    color: var(--em-text-muted);
    font-family: var(--em-font-ui);
}

.em-remember input[type="checkbox"] {
    margin-right: 6px;
}

.em-btn-block {
    display: block;
    width: 100%;
    margin-top: 8px;
}

.em-auth-link {
    margin-top: 24px;
    font-size: 14px;
    color: var(--em-text-muted);
    font-family: var(--em-font-ui);
}

.em-auth-link a {
    color: var(--em-primary);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.em-auth-link a:hover {
    border-bottom-color: var(--em-primary);
}

/* === Help Button (Je suis bloqué) === */

.em-help-section {
    margin-top: 24px;
    text-align: center;
}

.em-btn-help {
    background: transparent;
    color: var(--em-error);
    border: 1px solid rgba(231, 76, 60, 0.3);
    padding: 10px 20px;
    font-size: 12px;
    letter-spacing: 1px;
}

.em-btn-help:hover {
    background: rgba(231, 76, 60, 0.1);
    border-color: var(--em-error);
}

.em-btn-help-sent {
    color: var(--em-success) !important;
    border-color: var(--em-success) !important;
}

/* === Completed Actions === */

.em-completed-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 24px;
}

/* === Profile Redesign === */

#em-profile.em-container {
    padding: 60px 40px;
    min-height: 100vh;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#em-profile-content {
    width: 100%;
    max-width: 900px;
}

#em-profile h2 {
    color: var(--em-primary);
    font-family: var(--em-font);
    font-weight: normal;
    font-size: 36px;
    letter-spacing: 2px;
    margin-bottom: 12px;
    text-align: center;
}

.em-profile-games {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.em-profile-game-card {
    background: var(--em-bg-card);
    border: 1px solid var(--em-border);
    border-radius: 4px;
    padding: 28px;
    transition: all 0.3s;
}

.em-profile-game-card:hover {
    border-color: var(--em-primary);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.em-profile-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.em-profile-card-header h3 {
    margin: 0;
    color: var(--em-text);
    font-family: var(--em-font);
    font-weight: normal;
    font-size: 20px;
}

.em-profile-card-stats {
    display: flex;
    gap: 24px;
    margin-bottom: 8px;
}

.em-profile-stat {
    display: flex;
    flex-direction: column;
}

.em-profile-stat-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--em-primary);
    font-family: var(--em-font-ui);
}

.em-profile-stat-label {
    font-size: 11px;
    color: var(--em-text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: var(--em-font-ui);
    margin-top: 4px;
}

.em-profile-completed-msg {
    margin-top: 16px;
    padding: 10px 16px;
    border: 1px solid rgba(76, 175, 80, 0.3);
    color: var(--em-success);
    font-size: 13px;
    text-align: center;
    border-radius: 2px;
    font-family: var(--em-font-ui);
}

#em-profile-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--em-text-muted);
    font-style: italic;
    font-size: 18px;
}

/* === Oxygen Override — Force Fullscreen === */

.ct-section .em-container,
.ct-section .em-home,
.ct-section .em-auth-container,
.ct-section .em-navbar,
.ct-code-block .em-container,
.ct-code-block .em-home,
.ct-code-block .em-auth-container,
.ct-code-block .em-navbar,
.oxy-dynamic-list .em-container {
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin: 0 !important;
    width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
}

.ct-section .em-auth-container,
.ct-code-block .em-auth-container {
    padding: 40px 20px !important;
}

.ct-section .em-navbar,
.ct-code-block .em-navbar {
    padding: 16px 40px !important;
}

/* === Responsive === */

@media (max-width: 768px) {
    .em-navbar { padding: 12px 16px; }
    .em-navbar-brand { font-size: 16px; }
    .em-navbar-links { gap: 16px; }
    .em-navbar-links a { font-size: 11px; letter-spacing: 1px; }
    .em-hero-title { font-size: 48px; letter-spacing: 6px; }
    .em-hero-desc { font-size: 16px; }
    .em-steps { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .em-features { grid-template-columns: 1fr; padding: 0 20px 60px; }
    .em-how-it-works { padding: 60px 20px; }
    .em-cta-section { padding: 60px 20px; }
    .em-auth-card { padding: 32px 24px; }
    .em-scenarios-grid {
        grid-template-columns: 1fr;
        padding: 24px 16px;
        gap: 20px;
    }
    .em-scenario-img { height: 180px; }
    .em-scenario-body { padding: 20px; }
    .em-scenario-title { font-size: 22px; }
    .em-scene-card { padding: 28px 20px; }
    .em-scene-title { font-size: 22px; }
    .em-input-group { flex-direction: column; }
    .em-completed-card { padding: 48px 24px; }
    #em-profile.em-container { padding: 32px 16px; }
}
