/*
Theme Name: YB Studio
Author: YB Studio
Description: Site de Yannick Bouende, développeur WordPress à Lyon.
Version: 1.0.1
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: ybstudio
*/

@font-face {
	font-family: "Schibsted Grotesk";
	src: url("fonts/schibsted-grotesk-latin.woff2") format("woff2");
	font-weight: 400 900;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Schibsted Grotesk";
	src: url("fonts/schibsted-grotesk-latin-ext.woff2") format("woff2");
	font-weight: 400 900;
	font-display: swap;
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
	--ink: #111511;
	--ink-2: #3c443b;
	--ink-3: #5b6459;
	--paper: #ffffff;
	--tint: #f4f7f3;
	--line: #e1e7df;
	--green: #78cc6d;        /* le vert de YB Studio : grands aplats, texte noir dessus */
	--green-ink: #276b1f;    /* le même vert, assez foncé pour du texte sur blanc */
	--font: "Schibsted Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--wrap: 1240px;
	--gutter: clamp(20px, 4vw, 40px);
	--section: clamp(80px, 9vw, 128px);
	--radius: 14px;
	--ease: cubic-bezier(.16, 1, .3, 1);
	--shadow: 0 1px 2px rgb(17 21 17 / .05), 0 18px 40px -18px rgb(17 21 17 / .28);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; scrollbar-color: #c9d3c6 var(--paper); }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font: 400 18px/1.6 var(--font);
	font-feature-settings: "ss01";
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: .08em; }
h1, h2, h3 { margin: 0; text-wrap: balance; letter-spacing: -.03em; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--green); color: var(--ink); }
:focus-visible { outline: 3px solid var(--green-ink); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.skip { position: absolute; left: -9999px; top: 12px; z-index: 50; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { left: 12px; }
.icon { flex: none; }

/* Boutons et liens */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 54px; padding: 0 26px; border-radius: 999px;
	font: 700 17px/1 var(--font); letter-spacing: -.01em; text-decoration: none; white-space: nowrap;
	border: 1.5px solid transparent; cursor: pointer;
	transition: transform .35s var(--ease), background-color .2s, color .2s, box-shadow .35s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-ink { background: var(--ink); color: #fff; box-shadow: 0 10px 24px -14px rgb(17 21 17 / .7); }
.btn-ink:hover { background: #000; box-shadow: 0 16px 30px -14px rgb(17 21 17 / .7); }
.btn-ink .icon[viewBox] path[stroke] { stroke: var(--green); }
.btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: 15px; }
.link {
	display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
	font-weight: 700; color: var(--green-ink); text-decoration: underline; text-decoration-color: rgb(39 107 31 / .35);
	transition: text-decoration-color .2s;
}
.link:hover { text-decoration-color: currentColor; }

/* En-tête */
.site-head {
	position: sticky; top: 0; z-index: 20;
	background: rgb(255 255 255 / .92); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
	border-bottom: 1px solid var(--line);
}
.head-row { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 800; font-size: 19px; letter-spacing: -.02em; min-height: 44px; }
.brand-mark {
	display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px;
	background: var(--green); color: var(--ink); font-size: 15px; font-weight: 900; letter-spacing: -.04em;
}
.head-nav { display: flex; gap: 4px; margin-left: auto; }
.head-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px; text-decoration: none; font-size: 16px; font-weight: 600; color: var(--ink-2); transition: background-color .2s, color .2s; }
.head-nav a:hover { background: var(--tint); color: var(--ink); }

/* Accroche */
.hero { padding-top: clamp(40px, 6vw, 80px); overflow: hidden; }
.hero h1 {
	font-size: clamp(2.6rem, min(6.4vw, 10.5vh), 5.6rem); line-height: .98; font-weight: 800; letter-spacing: -.04em;
	max-width: 20ch;
}
.hero mark {
	color: inherit; background: linear-gradient(transparent 58%, var(--green) 58%, var(--green) 92%, transparent 92%);
	padding-inline: .04em; -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.hero-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px 56px; flex-wrap: wrap; margin-top: clamp(24px, 3vw, 36px); }
.lede { max-width: 54ch; font-size: clamp(18px, 1.5vw, 20px); color: var(--ink-2); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Bande des sites réalisés : défile lentement, s'arrête au survol */
.reel {
	margin-top: clamp(36px, 4.5vw, 56px); padding-block: 8px 48px;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.reel-track { display: flex; width: max-content; animation: drift 80s linear infinite; }
.reel:hover .reel-track, .reel:focus-within .reel-track { animation-play-state: paused; }
.reel-set { display: flex; gap: 28px; padding-right: 28px; }
.reel-set li { width: clamp(280px, 40vw, 600px); }
.reel-set a { display: block; border-radius: var(--radius); transition: transform .5s var(--ease); }
.reel-set a:hover { transform: translateY(-6px); }
@keyframes drift { to { transform: translateX(-50%); } }

.shot { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.shot-bar {
	display: flex; align-items: center; gap: 7px; height: 32px; padding: 0 14px;
	background: var(--tint); border-bottom: 1px solid var(--line);
	font-size: 13px; font-weight: 600; color: var(--ink-3); letter-spacing: 0;
}
.shot-bar svg { color: var(--green-ink); }
.shot img { width: 100%; aspect-ratio: 1200 / 550; object-fit: cover; object-position: top; }

/* Sections */
.section { padding-block: var(--section); }
.section-tint { background: var(--tint); }
.section h2 { font-size: clamp(2.1rem, 4.2vw, 3.6rem); line-height: 1.02; font-weight: 800; }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px clamp(40px, 6vw, 96px); align-items: start; }
.split-head { position: sticky; top: 120px; }
.split-head p { margin-top: 20px; max-width: 36ch; color: var(--ink-2); font-size: 19px; }
.split-head-wide { position: static; display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 48px; flex-wrap: wrap; }
.split-head-wide p { margin-top: 0; }

/* Services : une carte, comme celle d'un restaurant */
.carte li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 8px 40px; padding-block: 30px; border-top: 1px solid var(--line); }
.carte li:last-child { border-bottom: 1px solid var(--line); }
.carte h3 { font-size: clamp(22px, 2.1vw, 28px); line-height: 1.15; font-weight: 750; }
.carte p { color: var(--ink-2); }

/* Projets */
.feature {
	display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px clamp(36px, 5vw, 72px); align-items: center;
	margin-top: clamp(40px, 5vw, 64px);
}
.feature-shot { display: block; border-radius: var(--radius); transition: transform .5s var(--ease); }
.feature-shot:hover { transform: translateY(-6px); }
.feature-text h3 { font-size: clamp(30px, 3.2vw, 44px); line-height: 1.05; font-weight: 800; }
.feature-text p { margin-block: 18px 12px; color: var(--ink-2); font-size: 19px; }
.projects-intro { margin-top: clamp(64px, 8vw, 104px); max-width: 52ch; font-size: clamp(20px, 1.8vw, 24px); line-height: 1.4; font-weight: 600; letter-spacing: -.01em; }
.projects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 32px; margin-top: 36px; }
.projects a { display: block; text-decoration: none; }
.projects .shot { transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.projects a:hover .shot { transform: translateY(-6px); box-shadow: 0 1px 2px rgb(17 21 17 / .05), 0 28px 50px -20px rgb(17 21 17 / .32); }
.project-name { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; font-size: 20px; font-weight: 700; letter-spacing: -.015em; }
.project-name .icon { width: 18px; height: 18px; color: var(--green-ink); transition: transform .35s var(--ease); }
.projects a:hover .project-name .icon { transform: translate(2px, -2px); }

/* Graphisme */
.gallery { columns: 3; column-gap: 24px; margin-top: clamp(40px, 5vw, 56px); }
.gallery li { break-inside: avoid; margin-bottom: 24px; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; border-radius: 10px; border: 1px solid var(--line); background: var(--tint); }
.gallery figcaption { margin-top: 10px; font-size: 15px; color: var(--ink-3); }
.gallery figcaption strong { color: var(--ink); font-weight: 700; margin-right: 4px; }

/* Parcours */
.about { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 48px clamp(40px, 6vw, 96px); align-items: start; }
.about-side { position: sticky; top: 112px; }
.portrait { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; background: var(--line); }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.about-name { margin-top: 20px; font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.about-role { color: var(--ink-3); }
.about-links { display: flex; flex-wrap: wrap; gap: 0 20px; margin-top: 8px; }
.about-intro { margin-top: 24px; max-width: 60ch; font-size: 20px; color: var(--ink-2); }
.timeline { margin-top: 48px; border-top: 1px solid var(--line); }
.timeline li { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 8px 32px; padding-block: 28px; border-bottom: 1px solid var(--line); }
.when { font-size: 15px; font-weight: 700; color: var(--green-ink); padding-top: 5px; font-variant-numeric: tabular-nums; }
.timeline h3 { font-size: 24px; line-height: 1.2; font-weight: 750; }
.where { font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.timeline p:last-child { color: var(--ink-2); max-width: 62ch; }
.facts { margin: 40px 0 0; display: grid; gap: 18px; }
.facts div { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 4px 32px; }
.facts dt { font-weight: 700; }
.facts dd { margin: 0; color: var(--ink-2); }

/* Contact : l'aplat vert */
.contact { background: var(--green); padding-block: var(--section); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px clamp(40px, 7vw, 112px); align-items: start; }
.contact h2 { font-size: clamp(2.6rem, 5.6vw, 4.8rem); line-height: .98; font-weight: 800; letter-spacing: -.04em; }
.contact-side > p { margin-block: 24px 32px; font-size: 20px; max-width: 40ch; }
.contact-list { margin-top: 36px; display: grid; gap: 4px; }
.contact-list li { display: flex; align-items: center; gap: 14px; min-height: 44px; font-size: 19px; font-weight: 600; }
.contact-list a { text-decoration: none; border-bottom: 1.5px solid rgb(17 21 17 / .3); transition: border-color .2s; }
.contact-list a:hover { border-color: var(--ink); }
.contact-form { background: #fff; border-radius: 20px; padding: clamp(24px, 3.5vw, 44px); box-shadow: 0 30px 60px -30px rgb(17 21 17 / .45); }

/* Formulaire (Contact Form 7) */
.wpcf7 form > p, .wpcf7 form label { display: block; margin: 0 0 18px; font-weight: 700; font-size: 16px; color: var(--ink); }
.wpcf7-form-control-wrap { display: block; margin-top: 8px; }
.wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 input[type="tel"], .wpcf7 textarea {
	width: 100%; min-height: 52px; padding: 13px 16px; border-radius: 10px;
	border: 1.5px solid var(--line); background: var(--tint); color: var(--ink);
	font: 400 17px/1.4 var(--font); caret-color: var(--green-ink);
	transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.wpcf7 textarea { min-height: 140px; height: 140px; resize: vertical; }
.wpcf7 input:focus, .wpcf7 textarea:focus { outline: none; border-color: var(--ink); background: #fff; box-shadow: 0 0 0 4px rgb(120 204 109 / .45); }
.wpcf7 input[type="submit"], .wpcf7 button[type="submit"] {
	width: 100%; min-height: 56px; margin-top: 4px; border: 0; border-radius: 999px; cursor: pointer;
	background: var(--ink); color: #fff; font: 700 17px/1 var(--font); transition: background-color .2s, transform .35s var(--ease);
}
.wpcf7 input[type="submit"]:hover, .wpcf7 button[type="submit"]:hover { background: #000; transform: translateY(-2px); }
.wpcf7 .wpcf7-spinner { display: none; }
.wpcf7 form.submitting .wpcf7-spinner { display: block; margin: 12px auto 0; }
.wpcf7-not-valid-tip { margin-top: 6px; font-size: 14px; font-weight: 600; color: #a3261b; }
.wpcf7 form .wpcf7-response-output { margin: 16px 0 0; padding: 12px 16px; border-radius: 10px; font-size: 15px; font-weight: 600; border-width: 1.5px; }
.wpcf7 form.sent .wpcf7-response-output { border-color: var(--green-ink); background: #eaf6e7; }

/* Pages simples (mentions légales…) */
.prose-wrap { padding-block: clamp(56px, 8vw, 112px); }
.prose { max-width: 70ch; }
.prose h1 { font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1; font-weight: 800; letter-spacing: -.04em; margin-bottom: 40px; }
.prose h2 { font-size: 24px; margin: 40px 0 12px; letter-spacing: -.02em; }
.prose p, .prose ul, .prose ol { margin-bottom: 16px; color: var(--ink-2); }
.prose ul { list-style: disc; padding-left: 1.2em; }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--green-ink); }

/* Pied de page */
.site-foot { border-top: 1px solid var(--line); padding-block: 28px; font-size: 15px; color: var(--ink-3); }
.foot-row { display: flex; justify-content: space-between; align-items: center; gap: 12px 32px; flex-wrap: wrap; }
.foot-row a { color: var(--ink); font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; }

/* Tablette */
@media (max-width: 900px) {
	.split, .feature, .about, .contact-grid { grid-template-columns: minmax(0, 1fr); }
	.split-head, .about-side { position: static; }
	.about-side { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 4px 24px; align-items: center; }
	.about-side .portrait { grid-row: span 3; }
	.about-name { margin-top: 0; }
	.gallery { columns: 2; }
}

/* Téléphone */
@media (max-width: 760px) {
	body { font-size: 17px; }
	.head-nav { display: none; }
	.btn-sm { margin-left: auto; }
	.hero-foot { flex-direction: column; align-items: stretch; }
	.actions .btn { flex: 1 1 auto; }
	.carte li, .timeline li, .facts div { grid-template-columns: minmax(0, 1fr); }
	.carte li { padding-block: 24px; }
	.projects { grid-template-columns: minmax(0, 1fr); }
	.gallery { column-gap: 14px; }
	.gallery li { margin-bottom: 14px; }
	.about-side { grid-template-columns: 112px minmax(0, 1fr); }
	.shot-bar { height: 28px; font-size: 12px; }
	.contact-list li { font-size: 18px; }
}
@media (max-width: 380px) {
	.brand-name { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.reel { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
	.reel-track { animation: none; }
	.reel-set[aria-hidden="true"] { display: none; }
	*, *::before, *::after { transition-duration: .01ms !important; }
}
