html, body {
    height: 100%;
    min-height: 100%;
}

body {
    margin: 0; padding: 0;
    background: #181826;
    color: #eee;
    font-family: 'Montserrat', 'Arial', sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a { color: #ffa726; text-decoration: none; }
a:hover { text-decoration: underline; }

header, footer {
    background: #1a1a2d;
    padding: 1.5em 0;
}

header img {
    height: 54px;
    vertical-align: middle;
}

header nav a {
    margin: 0 1.1em;
    font-weight: bold;
    color: #ffa726;
    letter-spacing: 1px;
    text-transform: uppercase;
}

header nav a:hover {
    color: #ffdd66;
}

.container {
    max-width: 1040px;
    margin: 0 auto;
    padding: 0 18px;
}

button, .btn {
    background: linear-gradient(90deg,#ffa726,#ff8e53);
    border: none;
    border-radius: 8px;
    padding: 0.65em 1.4em;
    color: #181826;
    font-weight: bold;
    font-size: 1em;
    box-shadow: 0 2px 8px #0003;
    cursor: pointer;
    transition: background 0.18s, color 0.18s;
    margin-top: 8px;
}
button:hover, .btn:hover {
    background: linear-gradient(90deg,#ffdd66,#ffa726);
    color: #1a1a2d;
}

section {
    margin: 3em auto 2em auto;
    max-width: 900px;
    background: #232338;
    border-radius: 20px;
    box-shadow: 0 6px 32px #0003;
    padding: 2.5em 2em 2em 2em;
}

section:first-of-type {
    background: linear-gradient(120deg, #181826 80%, #ffa7260f 100%);
    box-shadow: none;
    margin-top: 2.2em;
}

h1, h2, h3 {
    color: #ffa726;
    letter-spacing: 1.5px;
    font-family: 'Montserrat', Arial, sans-serif;
    margin-top: 0.3em;
}

ul, li {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.games-list {
    display: flex;
    gap: 2em;
    flex-wrap: wrap;
    justify-content: center;
    margin: 2em 0;
}

.game-card {
    background: #1a1a2d;
    border-radius: 14px;
    box-shadow: 0 2px 14px #0002;
    width: 250px;
    min-height: 310px;
    padding: 1.2em 1em;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1.5em;
    transition: transform 0.12s, box-shadow 0.12s;
}
.game-card:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 4px 32px #ffa72655;
}

.game-card img {
    width: 96%;
    border-radius: 10px;
    box-shadow: 0 2px 10px #0004;
    margin-bottom: 1em;
}

.game-card h3 {
    margin: 0.3em 0 0.7em 0;
    font-size: 1.18em;
}
.game-card a {
    color: #ffa726;
    font-weight: bold;
    text-decoration: none;
}
.game-card a:hover {
    color: #ffdd66;
    text-decoration: underline;
}

.news-list {
    margin: 2em 0 1em 0;
}
.news-item {
    margin-bottom: 1.5em;
    background: #1a1a2d;
    border-radius: 10px;
    box-shadow: 0 2px 10px #0002;
    padding: 1.1em 1.1em 1em 1.1em;
}
.news-item b {
    font-size: 1.11em;
    color: #ffa726;
}
.news-item .date {
    color: #b0b0b9;
    font-size: 0.98em;
    margin-left: 0.8em;
}
.news-item a {
    margin-left: 0.3em;
    color: #ffa726;
}
.news-item a:hover { color: #ffdd66; }

@media (max-width: 820px) {
    section, .container {
        max-width: 99vw;
        padding: 1em;
    }
    .games-list { gap: 1em; }
    .game-card { width: 97vw; min-width: 0; }
}

main {
    flex: 1 0 auto;      /* Prend tout l'espace dispo, pousse le footer en bas */
}

footer {
    flex-shrink: 0;
    position: relative;
    width: 100%;
    /* Le reste de ton style (background, padding...) */
}

/*newspage*/

.news-list {
    display: flex;
    flex-direction: column;
    gap: 2.2em;
    margin: 2em 0 1em 0;
    padding: 0;
}

.news-item {
    display: flex;
    gap: 1.5em;
    background: #232338;
    border-radius: 16px;
    box-shadow: 0 2px 12px #0002;
    padding: 1.2em 2em;
    align-items: flex-start;
    transition: transform 0.13s, box-shadow 0.13s;
}
.news-item:hover {
    transform: scale(1.03) translateY(-2px);
    box-shadow: 0 6px 32px #ffa72655;
}

.news-item img {
    width: 120px;
    min-width: 100px;
    max-width: 150px;
    border-radius: 10px;
    box-shadow: 0 2px 10px #0003;
    object-fit: cover;
}

.news-content {
    flex: 1;
}

.news-title {
    font-size: 1.25em;
    color: #ffa726;
    font-weight: bold;
    margin: 0 0 0.5em 0;
}
.news-date {
    color: #bbb;
    font-size: 0.97em;
    margin-bottom: 0.7em;
    display: block;
}
.news-content-text {
    margin-bottom: 0.7em;
    color: #eee;
    line-height: 1.6;
}
.news-item a {
    color: #ffa726;
    font-weight: bold;
}
.news-item a:hover { color: #ffdd66; }


/*newsview*/

.news-single {
    background: #232338;
    border-radius: 18px;
    box-shadow: 0 4px 32px #0003;
    max-width: 720px;
    margin: 3em auto 2em auto;
    padding: 2.2em 2em 2em 2em;
}

.news-single h2 {
    text-align: center;
    font-size: 2.2em;
    margin-bottom: 1.2em;
    color: #ffa726;
    letter-spacing: 1.5px;
}

.news-single-img {
    text-align: center;
    margin-bottom: 1.2em;
}

.news-single-img img {
    max-width: 380px;
    width: 90%;
    border-radius: 14px;
    box-shadow: 0 2px 16px #0002;
}

.news-single-date {
    text-align: right;
    color: #bbb;
    font-size: 0.99em;
    margin-bottom: 1.2em;
    font-style: italic;
}

.news-single-content {
    font-size: 1.18em;
    color: #eee;
    line-height: 1.65;
    margin-bottom: 2.1em;
}

.news-single .btn, .news-single a.btn {
    display: inline-block;
    margin: 0 auto;
}


/*studiopage*/

.studio {
    background: #232338;
    border-radius: 18px;
    box-shadow: 0 4px 32px #0002;
    max-width: 860px;
    margin: 3em auto 2em auto;
    padding: 2.4em 2em 2.4em 2em;
}
.studio h2 {
    text-align: center;
    color: #ffa726;
    font-size: 2em;
    margin-bottom: 0.8em;
}
.studio h3 {
    margin-top: 2.4em;
    color: #ffa726;
    font-size: 1.35em;
    letter-spacing: 1px;
}
.studio p {
    color: #eee;
    line-height: 1.7;
    font-size: 1.13em;
    margin-bottom: 1.1em;
}

.team-list {
    display: flex;
    gap: 2.2em;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 1.5em;
}

.team-card {
    background: #1a1a2d;
    border-radius: 15px;
    box-shadow: 0 2px 14px #0003;
    width: 250px;
    min-width: 200px;
    max-width: 97vw;
    padding: 1.4em 1em 1.4em 1em;
    text-align: center;
    margin-bottom: 1.4em;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.13s, box-shadow 0.13s;
}
.team-card:hover {
    transform: scale(1.04) translateY(-2px);
    box-shadow: 0 6px 32px #ffa72655;
}

.team-card img {
    border-radius: 50%;
    width: 98px;
    height: 98px;
    object-fit: cover;
    margin-bottom: 0.8em;
    box-shadow: 0 2px 10px #0003;
}
.team-name {
    font-weight: bold;
    font-size: 0.8em;
    margin-bottom: 0.4em;
    color: #ffa726;
}
.team-role {
    color: #b4b4c4;
    margin-bottom: 0.4em;
    font-size: 1.01em;
}
.team-bio {
    font-size: 0.99em;
    color: #e8e8ef;
    line-height: 1.5;
}

/* Responsive pour mobile */
@media (max-width: 700px) {
    .studio { padding: 1.3em 0.5em; }
    .team-list { gap: 1em; }
    .team-card { width: 97vw; min-width: 0; }
}


/*contact page */

.contact-form-section {
    border-radius: 18px;
    box-shadow: 0 4px 32px #0002;
    max-width: 500px;
    margin: 3em auto 2em auto;
    padding: 2.4em 2.4em 2.4em 2.4em;
    backdrop-filter: blur(4px);
    background: rgba(35, 35, 56, 0.97);
}

.contact-form-section h2 {
    background: linear-gradient(90deg,#ffa726,#ffdd66 90%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}


.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5em;
}

.contact-field label {
    display: block;
    color: #ffdd66;
    font-weight: bold;
    margin-bottom: 0.5em;
    font-size: 1.08em;
    letter-spacing: 1px;
}

.contact-field input,
.contact-field textarea {
    background: #181826;      /* Un fond plus clair que le fond de page */
    color: #fff;              /* Texte blanc, très lisible */
    border: 1.5px solid #444; /* Une bordure visible même quand pas focus */
    box-shadow: 0 1px 4px #0002;
    border-radius: 7px;
    font-size: 1em;
    margin-bottom: 0.3em;
    transition: border 0.2s, box-shadow 0.15s, background 0.15s;
}

.contact-field input::placeholder,
.contact-field textarea::placeholder {
    color: #bbb;      /* Placeholders gris clair */
    opacity: 1;
}

.contact-field input:focus,
.contact-field textarea:focus {
    outline: none;
    border: 1.5px solid #ffa726;
    box-shadow: 0 0 8px #ffa72655;
    background: #22223b;     /* Encore un peu plus clair en focus */
    color: #fff;
}


.contact-alert {
    margin: 0 0 1em 0;
    border-radius: 7px;
    padding: 1em;
    font-weight: bold;
    font-size: 1em;
    text-align: center;
}
.contact-success { background: #244e1a; color: #d5ffb5; border: 1px solid #77e649;}
.contact-error { background: #441b1b; color: #ffd3d3; border: 1px solid #d15252;}

@media (max-width: 650px) {
    .contact-form-section { padding: 1em 0.5em; }
}

button, .btn {
    border-radius: 12px;
}

button, .btn {
    transition: background 0.2s, transform 0.14s;
}
button:hover, .btn:hover {
    background: linear-gradient(90deg,#ffdd66,#ffa726);
    transform: translateY(-3px) scale(1.03);
}


/* gamespage */

.games-list {
    display: flex;
    flex-wrap: wrap;
    gap: 2em;
    justify-content: center;
    margin: 2em 0 1em 0;
    padding: 0;
}

.game-card {
    background: #1a1a2d;
    border-radius: 14px;
    box-shadow: 0 2px 14px #0002;
    width: 290px;
    min-height: 340px;
    padding: 1.2em 1em;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1.5em;
    transition: transform 0.14s, box-shadow 0.14s;
}
.game-card:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 4px 32px #ffa72655;
}

.game-card img {
    width: 100%;
    max-width: 220px;
    border-radius: 10px;
    box-shadow: 0 2px 10px #0004;
    margin-bottom: 1em;
}

.game-card h3 {
    margin: 0.3em 0 0.7em 0;
    font-size: 1.17em;
    text-align: center;
}
.game-card a {
    color: #ffa726;
    font-weight: bold;
    text-decoration: none;
}
.game-card a:hover {
    color: #ffdd66;
    text-decoration: underline;
}

.game-description {
    color: #ddd;
    font-size: 1.01em;
    margin-bottom: 0.7em;
    text-align: center;
    min-height: 48px;
}

.btn, button {
    background: linear-gradient(90deg,#ffa726,#ff8e53);
    border: none;
    border-radius: 8px;
    padding: 0.60em 1.25em;
    color: #181826;
    font-weight: bold;
    font-size: 1em;
    box-shadow: 0 2px 8px #0003;
    cursor: pointer;
    transition: background 0.18s, color 0.18s;
}
.btn:hover, button:hover {
    background: linear-gradient(90deg,#ffdd66,#ffa726);
    color: #1a1a2d;
}

.game-card a.btn {
    color: #181826 !important;
}

@media (max-width: 850px) {
    .games-list { gap: 1em; }
    .game-card { width: 98vw; min-width: 0; }
}

/*games view */

.game-single {
    background: #232338;
    border-radius: 18px;
    box-shadow: 0 4px 32px #0003;
    max-width: 680px;
    margin: 3em auto 2em auto;
    padding: 2.3em 2em 2.3em 2em;
    text-align: center;
}
.game-single h2 {
    font-size: 2.1em;
    color: #ffa726;
    margin-bottom: 1.3em;
    letter-spacing: 1.5px;
}
.game-single-img {
    margin-bottom: 1.2em;
    text-align: center;
}
.game-single-img img {
    max-width: 350px;
    width: 95%;
    border-radius: 16px;
    box-shadow: 0 2px 16px #0002;
}
.game-single-desc {
    font-size: 1.15em;
    color: #eee;
    line-height: 1.7;
    margin-bottom: 1.9em;
    text-align: left;
    max-width: 590px;
    margin-left: auto;
    margin-right: auto;
}
.game-single .btn {
    margin: 0 0.4em;
    min-width: 170px;
}

.game-single a.btn {
    color: #181826 !important;
    background: linear-gradient(90deg,#ffa726,#ff8e53);
}
.game-single a.btn:hover {
    background: linear-gradient(90deg,#ffdd66,#ffa726);
    color: #1a1a2d !important;
}

.game-single a.btn[style*="background:#232338"] {
    background: #232338 !important;
    color: #ffa726 !important;
    border: 1.5px solid #ffa726;
    transition: background 0.16s, color 0.16s;
}
.game-single a.btn[style*="background:#232338"]:hover {
    background: #181826 !important;
    color: #ffdd66 !important;
    border: 1.5px solid #ffdd66;
}

.game-meta {
    margin-bottom: 1.1em;
    text-align: center;
}
.tag {
    display: inline-block;
    background: #ffa726;
    color: #181826;
    font-size: 0.97em;
    font-weight: bold;
    border-radius: 8px;
    padding: 0.24em 0.85em;
    margin: 0 0.14em 0.18em 0;
    letter-spacing: 0.5px;
}
.tag-status {
    background: #00cfa6;
    color: #181826;
}
.tag-date {
    background: #232338;
    color: #ffa726;
    border: 1px solid #ffa726;
}
.game-gallery {
    display: flex;
    justify-content: center;
    gap: 0.7em;
    margin-bottom: 1.2em;
    flex-wrap: wrap;
}
.game-gallery img {
    max-width: 110px;
    border-radius: 8px;
    box-shadow: 0 2px 10px #0003;
    background: #181826;
    padding: 2px;
}
.game-funfact {
    background: #232338;
    color: #ffa726;
    padding: 0.7em 1em;
    border-radius: 9px;
    margin: 2em auto 0 auto;
    max-width: 480px;
    font-size: 1.03em;
}

