/*
Theme Name: Roleen
Description: Thème de Roleen Studio, basé sur Twenty Twenty-Five. Police Clash Display, couleurs crème et terracotta.
Author: Roleen Studio
Template: twentytwentyfive
Version: 1.4.0
Requires at least: 6.7
Text Domain: roleen
*/

:root { --roleen-line: rgba(35, 23, 16, .16); --roleen-gutter: 48px; --roleen-header-h: 72px; }
@media (max-width: 820px) { :root { --roleen-gutter: 24px; } }

.eyebrow { font-size: 12.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--wp--preset--color--accent-4); }
.roleen-meta { font-size: 14px; letter-spacing: .03em; color: var(--wp--preset--color--accent-4); }

/* ---------- En-tête : fixe, transparent sur les photos, crème ailleurs ---------- */
.roleen-header {
	position: fixed; top: var(--wp-admin--admin-bar--height, 0px); left: 0; right: 0; z-index: 50; height: var(--roleen-header-h);
	background: var(--wp--preset--color--base); color: var(--wp--preset--color--contrast);
	font-size: 10px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
	transition: background .3s ease, color .3s ease;
}
body:has(.roleen-hero, .roleen-studio-hero) .roleen-header:not(.is-solid) { background: transparent; color: #fff; }
body:not(:has(.roleen-hero, .roleen-studio-hero)) .wp-site-blocks { padding-top: var(--roleen-header-h); }
.roleen-header .wp-block-navigation { font-size: inherit; }
.roleen-header .wp-block-navigation-item:not(:first-child)::before { content: "·"; opacity: .5; margin-right: 22px; }
.roleen-header .wp-block-site-title { font-size: 15px; font-weight: 600; letter-spacing: -.01em; text-transform: none; }
.roleen-header a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Photos en fond : un bloc Image qui remplit son conteneur ---------- */
.roleen-hero .wp-block-image, .roleen-studio-hero .roleen-bg { position: absolute; inset: 0; margin: 0; }
.roleen-hero .wp-block-image img, .roleen-studio-hero .roleen-bg img, .roleen-peek img,
.roleen-twin img, .roleen-team-photo img, .roleen-founder-photo img, .roleen-overlap img {
	width: 100%; height: 100% !important; object-fit: cover; display: block; /* WordPress impose height:auto */
}
.roleen-twin .wp-block-image, .roleen-team-photo, .roleen-founder-photo { margin: 0; }

/* ---------- Accueil : deux photos côte à côte, signature au centre ---------- */
.roleen-hero { position: relative; height: 100vh; min-height: 640px; color: #fff; overflow: hidden; }
.roleen-hero .roleen-hero-panel { right: 50%; }
.roleen-hero .roleen-hero-panel + .roleen-hero-panel { left: 50%; right: 0; }
.roleen-hero::after { content: ""; position: absolute; inset: 0; background: rgba(8, 5, 4, .32); pointer-events: none; }
/* WordPress espace les blocs d'une marge haute : ici elle décentrerait la signature */
.roleen-hero > *, .roleen-studio-hero > * { margin: 0 !important; }
.roleen-hero .roleen-lockup { position: absolute; z-index: 2; top: 50%; left: 50%; transform: translate(-50%, -50%); }
@media (max-width: 820px) {
	.roleen-hero .roleen-hero-panel { right: 0; bottom: 50%; }
	.roleen-hero .roleen-hero-panel + .roleen-hero-panel { left: 0; top: 50%; bottom: 0; }
}
.roleen-lockup { width: fit-content; }
.roleen-lockup p { margin: 0; line-height: 1; white-space: nowrap; }
.roleen-lockup .lk-logo { font-size: clamp(26px, 2.55vw, 42px); font-weight: 600; letter-spacing: .005em; }
.roleen-lockup .lk-tag { margin-top: clamp(7px, .6vw, 10px); font-size: clamp(9px, .78vw, 12px); font-weight: 500; text-transform: uppercase; }
.roleen-keep {
	position: absolute; z-index: 2; bottom: 30px; left: 0; right: 0; margin: 0; text-align: center;
	font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .88);
}

/* ---------- Blocs éditoriaux (accueil, Studio) ---------- */
.roleen-section { padding-block: 120px; border-top: 1px solid var(--roleen-line); margin-block: 0 !important; }
.roleen-intro { gap: 60px; }
.roleen-intro h1, .roleen-intro h2 { font-size: clamp(34px, 4.6vw, 58px); line-height: .98; }
.roleen-intro p, .roleen-lead { max-width: 520px; font-size: 16.5px; line-height: 1.5; color: var(--wp--preset--color--accent-4); }
.roleen-intro p + p { margin-top: 14px; }
.roleen-hero + .roleen-intro { padding-block: 130px 110px; margin-bottom: 0; }

/* ---------- Filtre et grille des projets ---------- */
.roleen-filter { font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--wp--preset--color--accent-4); }
.roleen-filter a { margin-left: 22px; color: var(--wp--preset--color--contrast); opacity: .65; }
.roleen-filter a:hover { opacity: .9; text-decoration: none; }
.roleen-work .wp-block-post-template { gap: 4px; }
.roleen-tile { position: relative; overflow: hidden; }
.roleen-tile .wp-block-post-featured-image { margin: 0; background: var(--wp--preset--color--accent-5); aspect-ratio: 1; }
.roleen-tile .wp-block-post-featured-image img { transition: transform .6s ease; }
.roleen-tile:hover .wp-block-post-featured-image img { transform: scale(1.03); }
.roleen-tile-caption {
	position: absolute; left: 0; right: 0; bottom: 0; padding: 16px 18px; pointer-events: none;
	background: linear-gradient(0deg, rgba(8, 5, 4, .78), rgba(8, 5, 4, 0)); color: #fff;
	opacity: 0; transition: opacity .35s ease;
}
.roleen-tile:hover .roleen-tile-caption, .roleen-tile:focus-within .roleen-tile-caption { opacity: 1; }
@media (hover: none) { .roleen-tile-caption { opacity: 1; } }
.roleen-tile-caption > * { margin: 0; }
.roleen-tile-caption .taxonomy-client { font-size: 14px; }
.roleen-tile-caption .wp-block-post-title { font-size: 14.5px; font-weight: 600; border-top: 1px solid rgba(255, 255, 255, .3); margin-top: 8px; padding-top: 8px; }
.roleen-tile-caption .wp-block-post-date { font-size: 11.5px; opacity: .85; }

/* Grille de l'accueil ([roleen_work]) : une vignette par client, comme la maquette */
.roleen-filter a.is-active { opacity: 1; border-bottom: 1px solid currentColor; padding-bottom: 3px; }
.roleen-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
@media (max-width: 900px) { .roleen-grid { grid-template-columns: repeat(2, 1fr); } }
.roleen-grid .roleen-tile { display: block; color: #fff; text-decoration: none; }
.roleen-grid .roleen-tile[hidden] { display: none; }
.roleen-tile-img { display: block; aspect-ratio: 1; background: var(--wp--preset--color--accent-5); }
.roleen-tile-img img { width: 100%; height: 100% !important; object-fit: cover; display: block; transition: transform .6s ease, filter .6s ease; }
.roleen-tile:hover .roleen-tile-img img { transform: scale(1.03); }
.roleen-grid .roleen-tile-caption > span { display: block; }
.roleen-tile.is-locked .roleen-tile-img img { filter: brightness(.38) blur(2px); transform: scale(1.05); }
.roleen-tile.is-locked .roleen-tile-caption { display: none; }
.roleen-tile-center {
	position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center;
	padding: 20px; text-align: center; pointer-events: none;
}
.roleen-tile-center svg { margin-bottom: 14px; opacity: .85; }
.roleen-tile-center b { font-size: clamp(18px, 1.8vw, 26px); font-weight: 600; }
.roleen-tile-center span { margin-top: 16px; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; opacity: .75; }

/* ---------- Bandeaux défilants (clients, agences) ---------- */
.roleen-clients { border-top: 1px solid var(--roleen-line); padding: 44px 0 26px; overflow: hidden; margin-block: 0 !important; }
.roleen-clients + .roleen-clients { padding: 34px 0 60px; }
.roleen-clients .eyebrow { padding-inline: var(--roleen-gutter); margin: 0 0 22px; }
.roleen-marquee { margin: 0; white-space: nowrap; font-size: 24px; color: var(--wp--preset--color--accent-4); }
.roleen-marquee.is-running { display: flex; width: max-content; animation: roleen-scroll 44s linear infinite; }
.roleen-clients.is-reverse .roleen-marquee.is-running { animation-direction: reverse; }
.roleen-marquee .mq-group { display: flex; justify-content: space-around; gap: 80px; padding-right: 80px; min-width: 100vw; }
.roleen-marquee .mq-group span { opacity: .75; }
@keyframes roleen-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .roleen-marquee.is-running { animation: none; } }

/* ---------- Studio ---------- */
.roleen-studio-hero {
	position: relative; height: 92vh; min-height: 600px; color: #fff; overflow: hidden;
	display: flex; justify-content: space-between; align-items: center; gap: 40px; padding: 0 var(--roleen-gutter);
}
.roleen-studio-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(8, 5, 4, .62) 0%, rgba(8, 5, 4, .15) 55%, rgba(8, 5, 4, .1) 100%); }
.roleen-studio-hero > :not(.roleen-bg) { position: relative; z-index: 2; }
.roleen-studio-hero .roleen-keep { position: absolute; }
.roleen-manifesto-text { max-width: 360px; font-size: 11px; letter-spacing: .07em; line-height: 1.7; text-transform: uppercase; }
.roleen-manifesto-text p { margin: 0 0 20px; }
.roleen-shm-logo { font-size: 26px; font-weight: 600; margin: 0; flex-shrink: 0; }
@media (max-width: 820px) { .roleen-studio-hero { flex-direction: column; align-items: flex-start; justify-content: flex-end; padding-block: 60px 90px; gap: 34px; } }
.wp-block-image.roleen-peek { position: relative; z-index: 5; margin-top: -90px !important; margin-bottom: 0; height: 50vh;
	margin-left: calc(var(--wp--style--root--padding-left, 50px) * -1); margin-right: calc(var(--wp--style--root--padding-right, 50px) * -1); min-height: 320px; overflow: hidden; }
@media (max-width: 820px) { .wp-block-image.roleen-peek { margin-top: -40px !important; height: 40vh; } }
.roleen-twin { gap: 6px; }
.roleen-twin .wp-block-image { aspect-ratio: 3 / 4; }
.roleen-team h2 { font-size: clamp(32px, 4.2vw, 52px); line-height: 1.05; margin-top: 14px; }
.roleen-team-photo { max-width: 470px; margin-left: auto !important; aspect-ratio: 1200 / 1799; }
.roleen-founder { gap: 80px; align-items: center; }
.roleen-founder-photo { aspect-ratio: 4 / 5; max-width: 520px; }
.roleen-founder h2 { font-size: clamp(36px, 5vw, 72px); line-height: .98; margin-top: 14px; }

/* ---------- Expertise ---------- */
.roleen-statement { padding-top: 110px; font-size: clamp(24px, 2.9vw, 40px) !important; font-weight: 500 !important; line-height: 1.2 !important; letter-spacing: -.015em; }
.roleen-services { gap: 100px; }
.roleen-overlap { position: relative; height: 420px; }
.roleen-overlap .wp-block-image { position: absolute; margin: 0; border-radius: 2px; }
.roleen-overlap .wp-block-image:first-child { top: 0; left: 6%; width: 58%; aspect-ratio: 3 / 4; z-index: 1; }
.roleen-overlap .wp-block-image:last-child { top: -38px; right: 0; width: 52%; aspect-ratio: 4 / 5; z-index: 2; box-shadow: 0 24px 55px rgba(20, 10, 6, .28); }
@media (max-width: 900px) { .roleen-overlap { height: 340px; } }
.roleen-service { display: grid; grid-template-columns: 50px 1fr; column-gap: 20px; padding: 36px 0; border-bottom: 1px solid var(--roleen-line); margin: 0 !important; }
.roleen-service > * { margin: 0; grid-column: 2; }
.roleen-service > .s-index { grid-column: 1; grid-row: 1 / span 2; padding-top: 8px; font-size: 13px; color: var(--wp--preset--color--accent-4); }
.roleen-service h3 { font-size: 26px; }
.roleen-service .s-tags { margin-top: 12px; font-size: 13px; letter-spacing: .05em; text-transform: uppercase; color: var(--wp--preset--color--accent-4); }

/* ---------- Contact ---------- */
.roleen-contact { gap: 80px; padding-block: 120px 100px; }
.roleen-contact h1 { font-size: clamp(38px, 5vw, 68px); line-height: 1; letter-spacing: -.035em; }
.roleen-email { margin-top: 30px; font-size: clamp(20px, 2.4vw, 28px); font-weight: 600; }
.roleen-email a { border-bottom: 1px solid var(--roleen-line); padding-bottom: 6px; }
.wpcf7 .field { margin-bottom: 22px; }
.wpcf7 .field label { display: block; margin-bottom: 8px; font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--wp--preset--color--accent-4); }
.wpcf7 input:not([type=submit]), .wpcf7 textarea, .wpcf7 select {
	width: 100%; padding: 8px 0; border: none; border-bottom: 1px solid var(--roleen-line); border-radius: 0;
	background: transparent; font: inherit; font-size: 15px; color: var(--wp--preset--color--contrast);
}
.wpcf7 input:focus-visible, .wpcf7 textarea:focus-visible, .wpcf7 select:focus-visible { outline: none; border-bottom-color: var(--wp--preset--color--contrast); }
.wpcf7 textarea { min-height: 70px; resize: vertical; }
.wpcf7 input[type=submit] {
	margin-top: 10px; padding: 9px 20px; border: 1px solid currentColor; border-radius: 40px; background: none;
	font: inherit; font-size: 12.5px; letter-spacing: .05em; color: var(--wp--preset--color--contrast); cursor: pointer;
}
.wpcf7 input[type=submit]:hover { background: var(--wp--preset--color--contrast); color: var(--wp--preset--color--base); }

/* ---------- Pied de page ---------- */
.roleen-footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.roleen-footer .fc-title { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; opacity: .6; }
.roleen-footer .footer-bottom { font-size: 11.5px; opacity: .6; }

/* Sur mobile, les colonnes s'empilent */
@media (max-width: 900px) { .roleen-intro, .roleen-founder, .roleen-services, .roleen-contact { gap: 40px; } .roleen-team-photo { margin-left: 0 !important; } }

/* Ancre « Work » de l'accueil : on s'arrête sous l'en-tête fixe */
#work { scroll-margin-top: calc(var(--roleen-header-h) + var(--wp-admin--admin-bar--height, 0px) + 24px); }
.wpcf7 .roleen-form-note { margin: 4px 0 0; font-size: 12.5px; color: var(--wp--preset--color--accent-4); }
.wpcf7 .roleen-form-note a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Deux polices, comme la maquette : Clash Display pour l'affichage, Inter pour le reste ---------- */
.lk-logo, .roleen-header .wp-block-site-title, .roleen-marquee, .roleen-email, .roleen-shm-logo,
.roleen-tile-caption .wp-block-post-title, .roleen-tile-center b {
	font-family: var(--wp--preset--font-family--clash-display);
}
.roleen-footer p { font-size: 14.5px; line-height: 1.95; }
.roleen-follow { margin-top: 50px; }
.roleen-follow .eyebrow { margin-bottom: 8px; }
.roleen-follow p:not(.eyebrow) { margin-top: 0; font-size: 15px; }
