
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Coda", system-ui;
}

body {
    overflow-x: hidden;
    background: #e0e0e0;
}

#toggle-search:checked ~ #search-overlay,
#toggle-favs:checked ~ #favs-overlay,
#toggle-auth:checked ~ #auth-overlay {
    display: flex;
}

header {
    position: fixed;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 40px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.5);
    z-index: 1000;
}

header a {
    text-decoration: none;
    padding: 0 15px;
    color: black;
}

.header svg {
    stroke: black;
}

.header-icon-transparent {
    stroke: black;
    cursor: pointer;
}

.header-icon{
    stroke: black;
    cursor: pointer;
}

.search-overlay {
    width: 100%;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 90;
    display: none;
    justify-content: center;
    align-items: flex-start;
    padding-top: 150px;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(2px);
}

.search-container {
    width: 60%;
    background: white;
    padding: 30px;
    border-radius: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    position: relative;
}

.search-top-bar {
    display: flex;
    gap: 15px;
    align-items: center;
}

.search-top-bar form {
    flex-grow: 1;
    display: flex;
    gap: 10px;
}

.search-top-bar input {
    flex-grow: 1;
    padding: 12px 20px;
    border-radius: 15px;
    border: 1px solid #ccc;
    font-size: 1.1em;
    outline: none;
}

.search-top-bar button {
    padding: 0 20px;
    border-radius: 15px;
    border: none;
    background: #000;
    color: #fff;
    cursor: pointer;
}

.clear-search-btn {
    background: #e74c3c;
    color: white !important;
    padding: 10px 15px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 0.8em;
}

.result-list-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
    max-height: 400px;
    overflow-y: auto;
    justify-content: center;
}

.search-sprites {
    background: #f8f8f8;
    padding: 10px;
    border-radius: 15px;
    text-align: center;
    width: 160px;
    border: 1px solid #eee;
}

.search-sprites img { width: 100%; height: auto; }

.generic-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
    z-index: 200;
    display: none;
    justify-content: center;
    align-items: center;
}

.modal-box {
    background: rgba(255, 255, 255, 0.9);
    padding: 30px;
    border-radius: 25px;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    border: 1px solid white;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.close-btn {
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
}

.close-btn:hover { color: red; }

.favs-list {
    max-height: 400px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.fav-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #fff;
    padding: 10px;
    border-radius: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.auth-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.auth-tabs button {
    flex: 1;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #ccc;
    background: #f0f0f0;
    cursor: pointer;
    font-weight: bold;
}
.auth-tabs button:hover { background: #e0e0e0; }

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.auth-form input {
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #ccc;
    font-size: 1em;
}

.auth-form button {
    padding: 12px;
    border-radius: 10px;
    border: none;
    background: black;
    color: white;
    cursor: pointer;
    font-weight: bold;
}

main {
    min-height: 100vh;
}

.resources-page,
.detail-page {
    padding-top: 160px;
}

.hero-container {
    width: 100%;
    height: 70vh;
    position: relative;
    overflow: hidden;
}

.screen {
    position: absolute;
    width: 100%;
    height: 100%;
    transition: transform 0.6s ease-in-out;
}

#accueil-screen { transform: translateX(0); }

#univers-screen {
    transform: translateX(100%);
    display: flex;
    align-items: center;
    padding-left: 5%;
    gap: 30px;
}

#screen-1:checked ~ #accueil-screen { transform: translateX(0); }
#screen-1:checked ~ #univers-screen { transform: translateX(100%); }
#screen-2:checked ~ #accueil-screen { transform: translateX(-100%); }
#screen-2:checked ~ #univers-screen { transform: translateX(0); }

.txt {
    font-size: 30px;
    font-weight: lighter;
    width: 50%;
    padding: 40px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 24px;
    border: 1px solid white;
    z-index: 5;
}

.pokemon-display-area {
    width: 100%;
    height: 100%;
    position: relative;
}

.random-pokemon-img {
    position: absolute;
    right: 9%;
    top: 40%;
    width: 400px;
    z-index: 10;
}

.random-pokemon-name {
    text-align: center;
    position: absolute;
    right: 16%;
    top: 90%;
}

.new-pokemon-btn {
    position: absolute;
    right: 13.5%;
    top: 95%;
    background: white;
    padding: 10px 20px;
    border-radius: 20px;
    text-decoration: none;
    border: 1px solid #ccc;
}

.univers-card {
    background: rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    padding: 25px;
    border: 1px solid white;
}

.main-card {
    width: 50%;
    height: 420px;
    display: flex;
    flex-direction: column;
}

.card-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

.card-title { font-weight: 800; }
.card-content { overflow-y: auto; }

.side-cards-wrapper {
    display: flex;
    flex-direction: column;
    gap: 25px;
    width: 35%;
}

.side-card-top{
    right: 8%;
    top: 25%;
    position: absolute;
    width: 450px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    padding: 25px;
    border: 1px solid white;
}

.documentation-link{
    width: 480px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    padding: 25px;
    border: 1px solid white;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-self: flex-end;
    align-items: center;
}

.side-card-bottom-description{
    width: 300px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    padding: 25px;
    border: 1px solid white;
    right: 10%;
    position: absolute;
    top: 60%;
}

.doc-info a {
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
}

.univers-slider {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    background: rgba(255, 255, 255, 0.3);
    padding: 10px 30px;
    border-radius: 20px;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
}

#screen-1:checked ~ .univers-slider label:nth-child(1),
#screen-2:checked ~ .univers-slider label:nth-child(2) { background: white; }

.resources-page {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
    padding-bottom: 40px;
}

.search-zone {
    margin: 10px 0 18px;
}
.search-zone form { display: flex; gap: 10px; align-items: center; }
.search-zone input {
    flex: 1;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(0,0,0,0.12);
    color: inherit;
}
.search-zone button {
    padding: 10px 14px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 18px;
    align-items: start;
}

.poke-card {
    border-radius: 16px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 18px rgba(0,0,0,0.08);
}

.poke-img { width: 100%; height: 170px; object-fit: contain; }

.poke-name { margin: 10px 0 6px; }
.poke-id { opacity: .8; margin: 0 0 10px; }

.details-link {
    display: inline-block;
    margin-top: 10px;
    text-decoration: none;
}

.detail-page{
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
    padding-bottom: 40px;

    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.backlink {
    grid-column: 1 / -1;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 10px;
}

.detail-card{
    background: rgba(255, 255, 255, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.08);
}

.detail-page > .detail-card:first-of-type{
    grid-column: 1 / -1;
}

.detail-top{
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 24px;
    align-items: start;
}

.detail-img{
    width: 220px;
    height: 220px;
    object-fit: contain;
}

.types { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0; }
.type {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,0.55);
    font-size: 14px;
}

.fav-btn {
    padding: 10px 14px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
}

.detail-grid {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.detail-grid li{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap: 12px;
    padding: 10px;
    border-radius: 12px;
    background: rgba(255,255,255,0.45);
}
.detail-grid li strong{ margin-right: 12px; }
.detail-grid li span{ font-weight: 700; }

.sprites-row { display:flex; gap:18px; flex-wrap:wrap; }
.mini-sprite { width: 120px; height: 120px; object-fit: contain; }

