/*
Theme Name: Ayaka Tateishi Portfolio
Theme URI: https://ayaka-tateishi.com
Description: Thème enfant minimaliste v4.1 (Revert Intro Simple).
Author: Ayaka Tateishi
Template: twentytwentyone
Version: 4.1.0
*/

/* --- RESET & BASE --- */
:root {
    --bg-color: #ffffff;
    --text-color: #333333;
    --font-stack: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--bg-color) !important;
    color: var(--text-color) !important;
    font-family: var(--font-stack) !important;
    font-size: 13px !important;
    line-height: 1.8;
    margin: 0;
    padding: 0;
}

a { text-decoration: none; color: inherit; transition: opacity 0.3s; }
a:hover { opacity: 0.6; }
ul, li { list-style: none; padding: 0; margin: 0; }

/* --- HEADER --- */
.site-header {
    padding: 40px 50px;
    background: #fff;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-title {
    font-size: 14px !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #000;
}

.main-navigation ul { display: flex; gap: 30px; }
.main-navigation a { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: #888; }
.main-navigation a:hover { color: #000; }
.main-navigation .current-menu-item a { color: #000; border-bottom: 1px solid #000; }

/* --- GRILLE HOME (DENSE 20px) --- */
.site-main {
    padding: 40px 50px 100px;
    max-width: 1600px;
    margin: 0 auto;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 20px;
    row-gap: 30px;
}

.portfolio-item {
    display: block; 
    cursor: pointer;
    width: 100%;
}

.portfolio-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.portfolio-title {
    font-size: 11px;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 10px 0 0 0;
}

.portfolio-cats {
    font-size: 10px;
    color: #bbb;
    margin-top: 2px;
    text-transform: uppercase;
}

/* --- PAGE PROJET (REVERT STYLE SIMPLE) --- */
.single-project-container {
    max-width: 800px; /* Retour à une largeur centrée standard */
    margin: 0 auto;
    padding-top: 20px;
}

.project-header {
    text-align: left;
    margin-bottom: 60px;
}

.project-title { 
    font-size: 16px; 
    margin-bottom: 5px; 
    font-weight: 400; 
}

.project-meta { 
    font-size: 11px; 
    color: #999; 
    text-transform: uppercase; 
}

.project-content img {
    width: 100%;
    height: auto;
    margin-bottom: 40px;
    display: block;
}

/* Navigation Précédent/Suivant */
.project-navigation {
    display: flex;
    justify-content: space-between;
    max-width: 800px;
    margin: 60px auto 0;
    border-top: 1px solid #eee;
    padding-top: 20px;
    font-size: 11px;
    text-transform: uppercase;
}

/* --- PAGE LISTE CATEGORIES --- */
.categories-container { max-width: 800px; margin: 0 auto; }
.page-title {
    font-size: 18px; text-transform: uppercase; letter-spacing: 0.1em;
    margin-bottom: 40px; border-bottom: 1px solid #000; padding-bottom: 20px;
}
.categories-list { display: flex; flex-direction: column; }
.category-card {
    display: flex; justify-content: space-between; padding: 20px 0; border-bottom: 1px solid #eee;
    font-size: 16px; text-transform: uppercase; transition: padding 0.3s, color 0.3s;
}
.category-card:hover { padding-left: 20px; color: #999; }
.cat-count { font-size: 12px; color: #ccc; display: flex; align-items: center; }

/* --- PAGE CONTACT --- */
.contact-layout { display: grid; grid-template-columns: 1fr 1.5fr; gap: 60px; max-width: 1000px; margin: 60px auto; }
.contact-info h2 { font-size: 12px; text-transform: uppercase; margin-bottom: 20px; letter-spacing: 0.1em; }
.page-container { max-width: 600px; margin: 0 auto; }
input, textarea { width: 100%; border: 1px solid #eee; background: #f9f9f9; padding: 15px; margin-bottom: 20px; font-size: 12px; }
input[type="submit"] { background: #000; color: #fff; border: none; padding: 12px 40px; cursor: pointer; }

/* --- FOOTER & SOCIAL --- */
.site-footer { text-align: center; padding: 50px 0; font-size: 10px; color: #ccc; text-transform: uppercase; }
.footer-social { margin-bottom: 15px; font-size: 11px; color: #999; }
.footer-social a { color: #666; margin: 0 5px; }
.footer-social a:hover { color: #000; }
.footer-social .sep { color: #ddd; margin: 0 2px; }

#side-social { position: fixed; right: 30px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 15px; z-index: 90; }
#side-social a { display: flex; justify-content: center; align-items: center; width: 40px; height: 40px; color: #999; transition: all 0.3s; }
#side-social a:hover { color: #000; transform: translateX(-3px); }

#return-to-top { position: fixed; bottom: 30px; right: 30px; background: #fff; border: 1px solid #eee; width: 40px; height: 40px; display: flex; justify-content: center; align-items: center; color: #999; opacity: 0; visibility: hidden; transition: all 0.3s; z-index: 99; }
#return-to-top.visible { opacity: 1; visibility: visible; }
#return-to-top:hover { border-color: #000; color: #000; }

@media (max-width: 768px) {
    .portfolio-grid { grid-template-columns: 1fr; }
    .site-header { padding: 20px; flex-direction: column; align-items: center; }
    #side-social { display: none; }
    .contact-layout { grid-template-columns: 1fr; gap: 40px; }
}