/* Template "Éditorial" (slug studio, several pages), after the mock-ups "Template classique" (accueil, portfolio, série, contact). */
body.tpl-studio {
	--ed-bg: #fbfaf7;
	--ed-band: #eff1ec;
	--ed-line: #e1e3dd;
	--ed-text: #2a2c29;
	--ed-muted: #858a83;
	--ed-accent: var(--folio-accent, #3f5a4c);
	--ed-title: var(--folio-font-heading, "Playfair Display", Georgia, serif);
	background: var(--ed-bg);
	color: var(--ed-text);
	font-family: "Montserrat", system-ui, sans-serif;
	scroll-behavior: smooth;
}
.tpl-studio a { color: inherit; }
.tpl-studio .folio-main { padding: 0; }
.tpl-studio .ed-wrap { width: min(100% - 3rem, 1240px); margin-inline: auto; }
.tpl-studio [id] { scroll-margin-top: 80px; }

/* Header */
.tpl-studio .ed-bar { position: sticky; top: 0; z-index: 30; border-bottom: 1px solid var(--ed-line); background: rgba(251, 250, 247, .94); backdrop-filter: blur(6px); }
.tpl-studio .ed-bar__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: 64px; }
.tpl-studio .ed-bar__name { font: 400 20px / 1 var(--ed-title); text-decoration: none; }
.tpl-studio .ed-nav { display: flex; gap: 2.4rem; }
.tpl-studio .ed-nav a { color: #4b4e49; font-size: 13.5px; text-decoration: none; }
.tpl-studio .ed-nav a:hover { color: var(--ed-accent); }
.tpl-studio .ed-nav a { position: relative; padding: 6px 0; }
.tpl-studio .ed-nav a[aria-current="page"] { color: var(--ed-accent); }
.tpl-studio .ed-nav a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: var(--ed-accent); }

/* Type */
.tpl-studio .ed-kicker { margin-bottom: .9rem; color: var(--ed-muted); font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.tpl-studio .ed-h1 { font: 400 clamp(3rem, 6vw, 4.6rem) / 1.08 var(--ed-title); max-width: 9ch; }
.tpl-studio .ed-h2 { margin-bottom: 1.6rem; font: 400 clamp(1.6rem, 2.6vw, 2.1rem) / 1.2 var(--ed-title); }
.tpl-studio .ed-h2--big { font-size: clamp(2rem, 3.4vw, 2.7rem); }
.tpl-studio .ed-rule { display: block; width: 52px; height: 1px; margin: 2rem 0; background: #c9ccc5; }
.tpl-studio .ed-lead { max-width: 36rem; color: #6c706a; font-size: 15px; line-height: 1.85; }
.tpl-studio .ed-lead + .ed-lead { margin-top: .9rem; }
.tpl-studio .ed-muted { color: var(--ed-muted); font-size: 14.5px; line-height: 1.75; }
.tpl-studio .ed-strong { color: var(--ed-text); font-size: 14.5px; font-weight: 600; }
.tpl-studio .ed-btn { display: inline-flex; align-items: center; gap: .8rem; margin-top: 2.2rem; padding: .95rem 1.4rem; border: 0; border-radius: 2px; background: var(--ed-accent); color: #fff; font: 500 13.5px / 1 "Montserrat", sans-serif; text-decoration: none; cursor: pointer; transition: filter .2s; }
.tpl-studio .ed-btn:hover { filter: brightness(1.12); }

/* Hero */
.tpl-studio .ed-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 4rem; align-items: center; padding: 5.5rem 0; }
.tpl-studio .ed-hero__photo img { display: block; width: 100%; aspect-ratio: 413 / 620; object-fit: cover; }

/* Characteristics band */
.tpl-studio .ed-band { padding: 4.5rem 0; background: var(--ed-band); }
.tpl-studio .ed-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 2.2rem; margin: 0; }
.tpl-studio .ed-facts div { padding: 1.2rem 0; border-top: 1px solid #dde0d9; }
.tpl-studio .ed-facts dt { margin-bottom: .45rem; color: var(--ed-muted); font-size: 12px; }
.tpl-studio .ed-facts dd { margin: 0; font-size: 14.5px; }
.tpl-studio .ed-about { max-width: 46rem; margin-top: 2.5rem; color: #5e625c; font-size: 15px; line-height: 1.85; }
.tpl-studio .ed-about p + p { margin-top: 1rem; }
.tpl-studio .folio-cv { display: inline-block; margin-top: 1.8rem; color: var(--ed-accent); }

/* Portfolio */
.tpl-studio .ed-portfolio { padding: 5.5rem 0 3rem; }
.tpl-studio .ed-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr); gap: 3rem; align-items: start; }
.tpl-studio .ed-portfolio__head { align-items: end; padding-bottom: 3.5rem; border-bottom: 1px solid var(--ed-line); }
.tpl-studio .ed-portfolio__head .ed-h2 { margin-bottom: 0; }
.tpl-studio .ed-portfolio__head .ed-muted { max-width: 30rem; justify-self: end; }
.tpl-studio .ed-series { padding: 3.5rem 0; border-bottom: 1px solid var(--ed-line); }
.tpl-studio .ed-series:last-child { border-bottom: 0; }
.tpl-studio .ed-series .ed-h2 { margin-bottom: 0; }
.tpl-studio .ed-series__text { color: var(--ed-muted); font-size: 14.5px; line-height: 1.8; }
.tpl-studio .ed-series__text p + p { margin-top: .8rem; }
.tpl-studio .ed-masonry { column-count: 3; column-gap: 1.1rem; margin-top: 2.6rem; }
.tpl-studio .ed-photo { display: block; margin-bottom: 1.1rem; overflow: hidden; break-inside: avoid; }
.tpl-studio .ed-photo img { display: block; width: 100%; height: auto; transition: transform .5s; }
.tpl-studio .ed-photo:hover img { transform: scale(1.03); }

/* Contact */
.tpl-studio .ed-contact { padding: 5rem 0; }
.tpl-studio .ed-contact__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 3.5rem; margin-top: .6rem; }
.tpl-studio .ed-detail { display: grid; gap: .45rem; margin-bottom: 1.5rem; font-size: 14.5px; }
.tpl-studio .ed-detail span { color: var(--ed-muted); font-size: 10.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.tpl-studio .ed-detail a { text-decoration: none; }
.tpl-studio .ed-contact .ed-rule { margin: 1.8rem 0 1.4rem; }
.tpl-studio .ed-socials { display: flex; gap: 1.2rem; margin: 0; }
.tpl-studio .ed-socials a { display: inline-flex; color: #50544e; font-size: 16px; }
.tpl-studio .ed-socials a:hover { color: var(--ed-accent); }
.tpl-studio .ed-socials svg { width: 1em; height: 1em; }
.tpl-studio .ed-form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem 1.8rem; margin: 0; padding: 0; border: 0; background: none; }
.tpl-studio .ed-form label { display: grid; gap: .55rem; color: #5b5f59; font-size: 12.5px; font-weight: 400; }
.tpl-studio .folio-cform__wide { grid-column: 1 / -1; }
.tpl-studio .folio-req { color: #b4473a; }
.tpl-studio .ed-form input, .tpl-studio .ed-form textarea { width: 100%; padding: .8rem .9rem; border: 1px solid transparent; border-radius: 0; background: #fcfcfa; color: var(--ed-text); font: inherit; font-size: 14.5px; }
.tpl-studio .ed-form textarea { min-height: 8rem; resize: vertical; }
.tpl-studio .ed-form input:focus, .tpl-studio .ed-form textarea:focus { outline: 0; border-color: var(--ed-accent); }
.tpl-studio .folio-cform__foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.tpl-studio .folio-cform__foot .ed-btn { margin-top: 0; }
.tpl-studio .folio-cform__note { color: var(--ed-muted); font-size: 11.5px; }

/* Pages: breadcrumb and title */
.tpl-studio .ed-head { padding: 3.2rem 0 2.6rem; }
.tpl-studio .ed-crumbs { display: flex; align-items: center; gap: .7rem; margin-bottom: 3rem; color: var(--ed-muted); font-size: 12.5px; }
.tpl-studio .ed-crumbs a { display: inline-flex; color: #6c706a; text-decoration: none; }
.tpl-studio .ed-crumbs a:hover { color: var(--ed-accent); }
.tpl-studio .ed-h2--page { margin-bottom: 0; font-size: clamp(2.2rem, 3.6vw, 2.9rem); }
.tpl-studio .ed-head__split { align-items: start; }
.tpl-studio .ed-head__split .ed-series__text { max-width: 40rem; padding-top: .6rem; }

/* Home: four photos of the portfolio, contact details in a row */
.tpl-studio .ed-preview { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.2rem; align-items: start; margin-top: 2.6rem; }
.tpl-studio .ed-preview .ed-photo { margin: 0; }
.tpl-studio .ed-preview img { aspect-ratio: 2 / 3; object-fit: cover; }
.tpl-studio .ed-portfolio .ed-portfolio__head { padding-bottom: 0; border-bottom: 0; }
.tpl-studio .ed-contact__row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; margin-top: 1rem; }
.tpl-studio .ed-contact__row .ed-detail { margin: 0; }
.tpl-studio .ed-contact .ed-btn { margin-top: 2rem; }

/* Portfolio: one card per series, last row centred */
.tpl-studio .ed-albums { display: flex; flex-wrap: wrap; justify-content: center; gap: 3rem 1.8rem; padding-bottom: 5rem; }
.tpl-studio .ed-album { display: flex; flex-direction: column; width: calc((100% - 3.6rem) / 3); text-decoration: none; }
.tpl-studio .ed-album__img { display: block; overflow: hidden; }
.tpl-studio .ed-album__img img { display: block; width: 100%; aspect-ratio: 384 / 500; object-fit: cover; transition: transform .5s; }
.tpl-studio .ed-album:hover .ed-album__img img { transform: scale(1.03); }
.tpl-studio .ed-album__text { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.2rem 0 1.1rem; border-bottom: 1px solid var(--ed-line); }
.tpl-studio .ed-album__text > span:first-child { display: grid; gap: .35rem; }
.tpl-studio .ed-album__title { font: 400 clamp(1.3rem, 2vw, 1.6rem) / 1.2 var(--ed-title); }
.tpl-studio .ed-album__count { color: var(--ed-muted); font-size: 13px; }
.tpl-studio .ed-album__arrow { font-size: 20px; transition: transform .2s; }
.tpl-studio .ed-album:hover .ed-album__arrow { transform: translateX(4px); color: var(--ed-accent); }

/* Page of a series */
.tpl-studio .ed-album-page { padding-bottom: 2rem; }
.tpl-studio .ed-album-page .ed-masonry { margin-top: 0; }
.tpl-studio .ed-pager { display: flex; justify-content: space-between; gap: 1.5rem; margin-top: 2.5rem; padding: 2rem 0 3rem; border-top: 1px solid var(--ed-line); }
.tpl-studio .ed-pager a { display: inline-flex; align-items: center; gap: .9rem; font: 400 clamp(1.1rem, 1.8vw, 1.35rem) / 1.2 var(--ed-title); text-decoration: none; }
.tpl-studio .ed-pager a:hover { color: var(--ed-accent); }
.tpl-studio .ed-pager__next { margin-left: auto; }

/* Contact page */
.tpl-studio .ed-contact-page { padding-bottom: 5rem; }
.tpl-studio .ed-contact-page .ed-contact__grid { margin-top: 0; }
.tpl-studio .ed-contact-page .ed-rule { margin: 1.8rem 0 1.4rem; }
.tpl-studio .ed-contact-page .ed-form input, .tpl-studio .ed-contact-page .ed-form textarea { border-color: var(--ed-line); background: #fff; }
.tpl-studio .ed-contact-page .ed-form input:focus, .tpl-studio .ed-contact-page .ed-form textarea:focus { border-color: var(--ed-accent); }

/* Footer */
.tpl-studio .ed-foot { border-top: 1px solid var(--ed-line); }
.tpl-studio .ed-foot__inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; padding: 1.6rem 0; }
.tpl-studio .ed-foot__name { font: 400 18px / 1 var(--ed-title); }
.tpl-studio .ed-foot .ed-muted { font-size: 12px; }
.tpl-studio .ed-foot .ed-socials { justify-content: flex-end; }
.tpl-studio .folio-credit { background: var(--ed-band); }

@media (max-width: 960px) {
	.tpl-studio .ed-hero { grid-template-columns: 1fr; gap: 2.5rem; padding: 3.5rem 0; }
	.tpl-studio .ed-hero__photo { max-width: 420px; }
	.tpl-studio .ed-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tpl-studio .ed-split, .tpl-studio .ed-contact__grid { grid-template-columns: 1fr; gap: 1.4rem; }
	.tpl-studio .ed-portfolio__head .ed-muted { justify-self: start; }
	.tpl-studio .ed-masonry { column-count: 2; }
	.tpl-studio .ed-preview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tpl-studio .ed-album { width: calc((100% - 1.8rem) / 2); }
	.tpl-studio .ed-contact__row { grid-template-columns: 1fr; gap: 1.2rem; }
}
@media (max-width: 560px) {
	.tpl-studio .ed-wrap { width: calc(100% - 2rem); }
	.tpl-studio .ed-nav { gap: 1.1rem; }
	.tpl-studio .ed-bar__name { font-size: 17px; }
	.tpl-studio .ed-form { grid-template-columns: 1fr; }
	.tpl-studio .ed-album { width: 100%; }
	.tpl-studio .ed-masonry { column-count: 1; }
	.tpl-studio .ed-head { padding: 2rem 0 1.8rem; }
	.tpl-studio .ed-crumbs { margin-bottom: 1.8rem; }
	.tpl-studio .ed-pager { flex-direction: column; }
	.tpl-studio .ed-foot__inner { grid-template-columns: 1fr; justify-items: center; text-align: center; }
	.tpl-studio .ed-foot .ed-socials { justify-content: center; }
}
