:root {
    --accent: #ff3e00;
    --bg: #050505;
    --glass: rgba(255, 255, 255, 0.05);
    --border: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg);
    color: white;
    font-family: 'Inter', system-ui, sans-serif;
    overflow-x: hidden;
}

/* Header & Nav */
header {
    height: 100vh;
    background: radial-gradient(circle at 80% 20%, #1a1a1a 0%, #050505 100%);
    padding: 40px 8%;
}

header.header--compact {
    height: auto;
    min-height: 60vh;
    padding-bottom: 80px;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: -1px;
}

.logo span { color: var(--accent); }

.nav-links a {
    color: #999;
    text-decoration: none;
    margin-left: 30px;
    font-size: 0.9rem;
    transition: 0.3s;
}

.nav-links a:hover { color: white; }

.nav-links a.active {
    color: white;
}

.btn-small {
    display: inline-flex;
    align-items: center;
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
}

.btn-small:hover {
    border-color: var(--accent);
    background: rgba(255, 62, 0, 0.08);
}

/* Hero */
.hero-content {
    margin-top: 15vh;
    max-width: 800px;
}

.tagline {
    color: var(--accent);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
}

h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    line-height: 1.1;
    margin: 20px 0;
}

.hero-btns {
    display: flex;
    gap: 20px;
    margin-top: 40px;
}

.btn-primary {
    background: var(--accent);
    color: white;
    padding: 18px 35px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 50px;
}

/* --- SECTION JEUX (MODIFIÉE) --- */
.portfolio { 
    padding: 100px 8%; 
}

.section-header { 
    margin-bottom: 60px; 
}

.game-container {
    display: flex;
    gap: 20px; /* Espace entre les cartes */
    flex-wrap: nowrap; /* Aligne tout sur une seule ligne */
    width: 100%;
}

.game-card {
    position: relative;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    
    /* Calcul pour 4 colonnes (25% moins les gaps) */
    flex: 0 0 calc(25% - 15px); 
    
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    
    height: 500px;
    border-radius: 24px;
    padding: 30px;
    border: 1px solid var(--border);
    transition: 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.game-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    box-shadow: 0 20px 40px rgba(255, 62, 0, 0.2);
}

.placeholder {
    background: var(--glass);
    border: 2px dashed var(--border);
    justify-content: center;
    align-items: center;
    text-align: center;
}

.game-info h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: white;
}

.game-info p {
    color: #ccc;
    font-size: 0.85rem;
    line-height: 1.4;
}

.badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    border: 1px solid var(--border);
}

/* Responsivité */
@media (max-width: 1200px) {
    .game-container { flex-wrap: wrap; }
    .game-card { flex: 0 0 calc(50% - 10px); } /* 2 par ligne sur tablette */
}

@media (max-width: 600px) {
    .game-card { flex: 0 0 100%; } /* 1 par ligne sur mobile */
    .nav-links { display: none; }
}

/* --- FIN SECTION JEUX --- */

.contact-section {
    padding: 100px 8%;
    background: radial-gradient(circle at 20% 80%, #151515 0%, #050505 100%);
    border-top: 1px solid var(--border);
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.contact-content h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin: 20px 0;
}

.contact-content p {
    color: #999;
    max-width: 600px;
    margin: 0 auto 40px;
}

.contact-details {
    display: flex;
    justify-content: center;
    margin-bottom: 50px;
}

.contact-card {
    background: var(--glass);
    border: 1px solid var(--border);
    padding: 20px 40px;
    border-radius: 100px;
    display: flex;
    align-items: center;
    gap: 20px;
    text-decoration: none;
    color: white;
    transition: 0.4s;
}

.contact-card:hover {
    transform: scale(1.05);
    border-color: var(--accent);
    background: rgba(255, 62, 0, 0.1);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
}

.social-icon {
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    transition: 0.3s;
}

.social-icon:hover { color: white; }

footer {
    padding: 80px 8% 40px;
    text-align: center;
    background: #0a0a0a;
}

.email-link {
    font-size: clamp(1.2rem, 4vw, 2rem);
    color: white;
    text-decoration: none;
    border-bottom: 2px solid var(--accent);
}

.bottom-bar {
    margin-top: 50px;
    font-size: 0.8rem;
    color: #555;
}

.bottom-bar a {
    color: #777;
    text-decoration: none;
    margin-left: 10px;
}

.bottom-bar a:hover { color: white; }

.bottom-bar .sep {
    margin-left: 10px;
    color: #333;
}

.privacy-content {
    max-width: 900px;
    margin: 0 auto;
    color: #ddd;
    line-height: 1.8;
}

.privacy-content h3 {
    margin-top: 28px;
    margin-bottom: 10px;
}

.privacy-content ul {
    padding-left: 20px;
    margin-top: 10px;
    margin-bottom: 10px;
}

.privacy-content a { color: white; }

/* Feedback form */
.form-card {
    max-width: 980px;
    margin: 0 auto;
    padding: 28px;
    border-radius: 24px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
}

.alert {
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid var(--border);
    margin-bottom: 18px;
    color: #eee;
}

.alert-success {
    border-color: rgba(0, 255, 170, 0.25);
    background: rgba(0, 255, 170, 0.06);
}

.alert-error {
    border-color: rgba(255, 62, 0, 0.35);
    background: rgba(255, 62, 0, 0.08);
}

.feedback-form .hp-field {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.field-full {
    grid-column: 1 / -1;
}

.field label {
    font-size: 0.9rem;
    color: #cfcfcf;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 14px 14px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.25);
    color: white;
    outline: none;
}

.field textarea { resize: vertical; }

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: rgba(255, 62, 0, 0.7);
    box-shadow: 0 0 0 3px rgba(255, 62, 0, 0.15);
}

.field-error {
    color: #ffb39b;
    font-size: 0.85rem;
}

.form-actions {
    margin-top: 22px;
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.form-actions .btn-primary {
    border: none;
    cursor: pointer;
}

.btn-danger {
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 62, 0, 0.5);
    background: rgba(255, 62, 0, 0.12);
    color: white;
    cursor: pointer;
}

.btn-danger:hover {
    background: rgba(255, 62, 0, 0.18);
    border-color: rgba(255, 62, 0, 0.8);
}

/* Admin */
.admin-grid {
    max-width: 980px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.admin-card {
    display: block;
    padding: 22px;
    border-radius: 24px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
    color: white;
    text-decoration: none;
    transition: 0.3s;
}

.admin-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent);
    box-shadow: 0 20px 40px rgba(255, 62, 0, 0.12);
}

.admin-card-title {
    font-size: 1.1rem;
    font-weight: 800;
}

.admin-card-desc {
    margin-top: 10px;
    color: #aaa;
    line-height: 1.5;
    font-size: 0.9rem;
}

.admin-table-wrap {
    overflow-x: auto;
    border-radius: 16px;
    border: 1px solid var(--border);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 860px;
    background: rgba(0, 0, 0, 0.15);
}

.admin-table th,
.admin-table td {
    padding: 14px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    vertical-align: top;
}

.admin-table th {
    text-align: left;
    color: #bbb;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.02);
}

.admin-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.admin-table details summary {
    cursor: pointer;
    color: #eee;
}

@media (max-width: 900px) {
    .admin-grid { grid-template-columns: 1fr; }
}

.form-hint {
    color: #888;
    font-size: 0.85rem;
    line-height: 1.4;
    max-width: 560px;
}

@media (max-width: 800px) {
    .form-grid { grid-template-columns: 1fr; }
}