/*
Theme Name: Trimidi97 Créations
Theme URI: https://www.trimidi97.fr/
Author: Dimitri ARCADE
Description: Vitrine de jeux et de créations web : page d'accueil, portfolio filtrable (type « Création »), fiches projet avec démo intégrée, page pleine largeur pour les jeux.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: trimidi97
*/

:root {
	--deep: #0b3d4f;
	--night: #072a37;
	--turquoise: #12b5b0;
	--hibiscus: #e63950;
	--banane: #ffcf3f;
	--sand: #fffaf0;
	--ink: #10303b;
	--muted: #5b7680;
	--line: #dbe7ea;
	--radius: 16px;
	--shadow: 0 10px 30px rgba(7, 42, 55, .12);
	--wrap: 1180px;
	--font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 17px/1.6 var(--font); color: var(--ink); background: var(--sand); -webkit-font-smoothing: antialiased; }
img, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--deep); text-underline-offset: 3px; }
a:hover { color: var(--hibiscus); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; color: var(--night); letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--banane); outline-offset: 2px; }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 10px; left: 10px; z-index: 1000; width: auto; height: auto; clip: auto; background: #fff; padding: 10px 16px; border-radius: 8px; }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.section { padding: clamp(48px, 8vw, 96px) 0; }
.section--alt { background: #fff; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.section-head p { color: var(--muted); margin: 0; max-width: 620px; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--turquoise); margin-bottom: 10px; }

/* Boutons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px; font-weight: 700; text-decoration: none; border: 2px solid transparent; transition: transform .15s, background .15s, color .15s; cursor: pointer; font-size: 1rem; }
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--hibiscus); color: #fff; }
.btn--primary:hover { color: #fff; background: #cf2c43; }
.btn--ghost { border-color: currentColor; color: #fff; }
.btn--ghost:hover { color: var(--banane); }
.btn--light { background: var(--deep); color: #fff; }
.btn--light:hover { color: #fff; background: var(--night); }

/* En-tête */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(7, 42, 55, .92); backdrop-filter: blur(8px); color: #fff; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 800; font-size: 1.2rem; }
.brand:hover { color: #fff; }
.brand .custom-logo { max-height: 44px; width: auto; }
.brand b { color: var(--banane); }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.main-nav a { display: block; color: #e8f4f5; text-decoration: none; padding: 8px 14px; border-radius: 999px; font-weight: 600; }
.main-nav a:hover, .main-nav .current-menu-item > a { background: rgba(255, 255, 255, .12); color: #fff; }
.nav-toggle { display: none; background: none; border: 0; color: #fff; font-size: 1.6rem; cursor: pointer; padding: 6px; }
@media (max-width: 820px) {
	.nav-toggle { display: block; }
	.main-nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--night); display: none; padding: 10px 16px 16px; }
	.main-nav.is-open { display: block; }
	.main-nav ul { flex-direction: column; }
}

/* Héros */
.hero { position: relative; color: #fff; background: radial-gradient(1200px 500px at 85% -10%, rgba(18, 181, 176, .45), transparent 60%), radial-gradient(800px 400px at -10% 110%, rgba(230, 57, 80, .35), transparent 60%), linear-gradient(160deg, var(--deep), var(--night)); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding: clamp(56px, 10vw, 120px) 0; }
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; color: var(--banane); }
.hero p.lead { font-size: 1.2rem; color: #d7eef0; max-width: 560px; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.hero-visual { position: relative; aspect-ratio: 4/3; border-radius: 24px; overflow: hidden; box-shadow: 0 30px 60px rgba(0, 0, 0, .35); background: rgba(255, 255, 255, .06); }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; }
.hero-visual .placeholder { position: absolute; inset: 0; display: grid; place-items: center; font-size: 5rem; }
.hero-stats { display: flex; gap: 28px; margin-top: 34px; flex-wrap: wrap; }
.hero-stats div { font-size: .9rem; color: #bfe3e6; }
.hero-stats strong { display: block; font-size: 1.8rem; color: #fff; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } }

/* Filtres + grille */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 26px; }
.filters button { border: 2px solid var(--line); background: #fff; color: var(--ink); border-radius: 999px; padding: 8px 16px; font: inherit; font-weight: 600; font-size: .95rem; cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--deep); border-color: var(--deep); color: #fff; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.card { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(7, 42, 55, .18); }
.card[hidden] { display: none; }
.card-media { position: relative; aspect-ratio: 16/10; background: linear-gradient(135deg, var(--turquoise), var(--deep)); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card-media img { transform: scale(1.04); }
.card-media .placeholder { position: absolute; inset: 0; display: grid; place-items: center; font-size: 3rem; color: #fff; }
.card-badge { position: absolute; top: 12px; left: 12px; background: var(--banane); color: var(--night); font-size: .78rem; font-weight: 800; padding: 4px 10px; border-radius: 999px; }
.card-status { position: absolute; top: 12px; right: 12px; background: rgba(7, 42, 55, .85); color: #fff; font-size: .75rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 a { text-decoration: none; color: var(--night); }
.card-body h3 a::after { content: ""; position: absolute; inset: 0; }
.card { position: relative; }
.card-body p { color: var(--muted); font-size: .95rem; flex: 1; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; padding: 0; list-style: none; }
.tags li { font-size: .78rem; font-weight: 600; background: #eef6f7; color: var(--deep); padding: 3px 10px; border-radius: 999px; }

/* Bandeau à propos / contact */
.about { display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; align-items: center; }
.about-photo { border-radius: 24px; overflow: hidden; aspect-ratio: 1; background: linear-gradient(135deg, var(--banane), var(--hibiscus)); display: grid; place-items: center; font-size: 6rem; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 820px) { .about { grid-template-columns: 1fr; } }
.cta { background: linear-gradient(135deg, var(--hibiscus), #b9213a); color: #fff; border-radius: 24px; padding: clamp(32px, 6vw, 56px); text-align: center; }
.cta h2 { color: #fff; }
.cta p { color: #ffe3e7; max-width: 620px; margin-inline: auto; }
.cta .btn { background: #fff; color: var(--hibiscus); margin-top: 10px; }

/* Fiche création */
.project-hero { background: linear-gradient(160deg, var(--deep), var(--night)); color: #fff; padding: clamp(40px, 7vw, 80px) 0; }
.project-hero h1 { color: #fff; }
.project-hero .lead { color: #d7eef0; font-size: 1.15rem; max-width: 760px; }
.project-hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.project-meta { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.project-meta span { background: rgba(255, 255, 255, .12); padding: 4px 12px; border-radius: 999px; font-size: .85rem; font-weight: 600; }
.project-cover { margin-top: -40px; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); }
.project-layout { display: grid; grid-template-columns: 1fr 300px; gap: 40px; padding: 48px 0 80px; }
.project-aside { background: #fff; border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); align-self: start; position: sticky; top: 90px; }
.project-aside dt { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; margin-top: 14px; }
.project-aside dt:first-child { margin-top: 0; }
.project-aside dd { margin: 4px 0 0; font-weight: 600; }
@media (max-width: 900px) { .project-layout { grid-template-columns: 1fr; } .project-aside { position: static; } }

/* Contenu éditorial */
.entry-content > * { max-width: 760px; }
.entry-content > .alignwide { max-width: 1100px; }
.entry-content > .alignfull, .entry-content > .joa-wrap { max-width: none; }
.entry-content img { border-radius: 12px; }
.entry-content blockquote { border-left: 4px solid var(--turquoise); margin: 1.5em 0; padding: .2em 1.2em; color: var(--muted); }
.page-head { padding: clamp(40px, 7vw, 72px) 0 24px; }
.page-full .entry-content > * { max-width: none; }

/* Articles (blog) */
.post-list { display: grid; gap: 24px; }
.post-item { background: #fff; border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow); }
.post-item time { color: var(--muted); font-size: .9rem; }
.pagination { margin-top: 32px; display: flex; gap: 8px; flex-wrap: wrap; }
.pagination .page-numbers { padding: 8px 14px; border-radius: 10px; background: #fff; text-decoration: none; box-shadow: var(--shadow); }
.pagination .current { background: var(--deep); color: #fff; }

/* Pied de page */
.site-footer { background: var(--night); color: #bcd6da; padding: 48px 0 28px; margin-top: 0; }
.site-footer a { color: #fff; }
.footer-grid { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; }
.socials { display: flex; gap: 10px; list-style: none; margin: 0; padding: 0; }
.socials a { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px; padding: 0 14px; border-radius: 999px; background: rgba(255, 255, 255, .08); text-decoration: none; font-weight: 700; font-size: .9rem; }
.socials a:hover { background: var(--turquoise); color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 28px; padding-top: 18px; font-size: .88rem; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer-bottom ul { list-style: none; display: flex; gap: 16px; margin: 0; padding: 0; }

/* WordPress */
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { margin-inline: auto; }
.wp-caption-text, figcaption { font-size: .88rem; color: var(--muted); text-align: center; }
.sticky, .bypostauthor, .gallery-caption { }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
