/*
Theme Name: Blocksy Child
Theme URI: https://visualvibes.lu
Description: Thème enfant de Blocksy pour Visual Vibes
Author: Visual Vibes
Template: blocksy
Version: 1.0.0
Text Domain: blocksy-child
*/
/* ==========================================================================
/* ==========================================================================
   Visual Vibes — Fiches projet du portfolio
   À coller à la suite de style.css, sous le bloc « Theme Name ».
   ========================================================================== */

.vv-projet {
	--vv-accent: #111111;
	--vv-trait: color-mix(in srgb, currentColor 12%, transparent);
	--vv-doux: color-mix(in srgb, currentColor 55%, transparent);
}

/* --------------------------------------------------------------------------
   Hero pleine largeur
   Le calc() fait déborder l'image du conteneur de Blocksy pour occuper
   toute la fenêtre, sans toucher au gabarit du thème.
   -------------------------------------------------------------------------- */

.vv-hero {
	width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-bottom: clamp(3rem, 7vw, 6rem);
}

.vv-hero-media {
	position: relative;
	aspect-ratio: 21 / 9;
	overflow: hidden;
	background-color: color-mix(in srgb, var(--vv-accent) 8%, transparent);
}

.vv-hero-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.vv-hero-contenu {
	max-width: 1200px;
	margin: 0 auto;
	padding: clamp(1.75rem, 4vw, 3rem) 20px 0;
}

.vv-hero-surtitre {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin: 0 0 0.75rem;
	font-size: 0.8125rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--vv-doux);
}

.vv-hero-titre {
	margin: 0;
	font-size: clamp(2.5rem, 7vw, 5rem);
	line-height: 1.02;
	letter-spacing: -0.03em;
}

.vv-badge {
	padding: 0.25em 0.7em;
	font-size: 0.6875rem;
	letter-spacing: 0.08em;
	border: 1px solid var(--vv-trait);
	border-radius: 2em;
}

/* --------------------------------------------------------------------------
   Grille principale
   -------------------------------------------------------------------------- */

.vv-grille {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 260px;
	gap: clamp(2.5rem, 6vw, 5rem);
	align-items: start;
}

/* --------------------------------------------------------------------------
   Accroche
   -------------------------------------------------------------------------- */

.vv-accroche {
	margin: 0 0 clamp(2.5rem, 6vw, 4.5rem);
	padding-bottom: clamp(2rem, 4vw, 3rem);
	border-bottom: 1px solid var(--vv-trait);
	font-size: clamp(1.5rem, 3.2vw, 2.25rem);
	line-height: 1.3;
	letter-spacing: -0.015em;
	max-width: 24ch;
}

/* --------------------------------------------------------------------------
   Sections de récit
   -------------------------------------------------------------------------- */

.vv-section {
	margin-bottom: clamp(3rem, 7vw, 5.5rem);
}

.vv-section-titre {
	display: flex;
	align-items: baseline;
	gap: 1rem;
	margin: 0 0 1.5rem;
	font-size: clamp(1.25rem, 2.2vw, 1.625rem);
	letter-spacing: -0.01em;
}

.vv-section-titre span {
	font-size: 0.75rem;
	font-weight: 400;
	letter-spacing: 0.1em;
	color: var(--vv-accent);
	font-variant-numeric: tabular-nums;
}

.vv-prose {
	max-width: 62ch;
}

.vv-prose p {
	margin: 0 0 1.25rem;
	line-height: 1.75;
	font-size: 1.0625rem;
}

.vv-prose p:last-child {
	margin-bottom: 0;
}

.vv-prose strong {
	font-weight: 600;
}

.vv-fonctionnalites {
	max-width: 62ch;
	margin: 0;
	padding: 0;
	list-style: none;
}

.vv-fonctionnalites li {
	padding: 0.85rem 0 0.85rem 1.5rem;
	border-bottom: 1px solid var(--vv-trait);
	line-height: 1.5;
	position: relative;
}

.vv-fonctionnalites li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 1.4em;
	width: 8px;
	height: 1px;
	background-color: var(--vv-accent);
}

/* --------------------------------------------------------------------------
   Galerie de visuels
   -------------------------------------------------------------------------- */

.vv-visuels > *:first-child {
	margin-top: 0;
}

.vv-visuels > *:last-child {
	margin-bottom: 0;
}

.vv-visuels .wp-block-image img,
.vv-visuels .wp-block-gallery img {
	border-radius: 2px;
}

/* --------------------------------------------------------------------------
   Témoignage
   -------------------------------------------------------------------------- */

.vv-temoignage {
	margin: clamp(3rem, 7vw, 5rem) 0 0;
	padding: clamp(1.75rem, 4vw, 2.5rem) 0 0;
	border-top: 2px solid var(--vv-accent);
	max-width: 58ch;
}

.vv-temoignage blockquote {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: clamp(1.125rem, 2vw, 1.375rem);
	line-height: 1.5;
}

.vv-temoignage blockquote p {
	margin: 0 0 1rem;
}

.vv-temoignage figcaption {
	font-size: 0.875rem;
	letter-spacing: 0.04em;
	color: var(--vv-doux);
}

/* --------------------------------------------------------------------------
   Colonne latérale collante
   -------------------------------------------------------------------------- */

.vv-aside-interieur {
	position: sticky;
	top: 100px;
	font-size: 0.9375rem;
}

.vv-fiche {
	margin: 0 0 2rem;
	padding: 0 0 2rem;
	border-bottom: 1px solid var(--vv-trait);
}

.vv-fiche dt {
	font-size: 0.6875rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--vv-doux);
	margin: 0 0 0.2rem;
}

.vv-fiche dd {
	margin: 0 0 1.1rem;
	font-weight: 500;
}

.vv-fiche dd:last-child {
	margin-bottom: 0;
}

.vv-aside-bloc {
	margin-bottom: 2rem;
	padding-bottom: 2rem;
	border-bottom: 1px solid var(--vv-trait);
}

.vv-aside-titre {
	font-size: 0.6875rem;
	font-weight: 500;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--vv-doux);
	margin: 0 0 0.9rem;
}

.vv-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.vv-tags li {
	padding: 0.3em 0.75em;
	font-size: 0.8125rem;
	border: 1px solid var(--vv-trait);
	border-radius: 2em;
}

/* Palette */

.vv-palette {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.vv-palette li {
	flex: 1 1 0;
	min-width: 0;
	text-align: center;
}

.vv-palette-pastille {
	display: block;
	width: 100%;
	height: 56px;
	border-radius: 3px;
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.vv-palette-code {
	display: block;
	margin-top: 0.4rem;
	font-size: 0.625rem;
	font-family: ui-monospace, "SFMono-Regular", "Menlo", monospace;
	letter-spacing: -0.02em;
	color: var(--vv-doux);
}

/* Typographies */

.vv-typos {
	list-style: none;
	margin: 0;
	padding: 0;
}

.vv-typos li {
	margin-bottom: 0.75rem;
	font-weight: 500;
}

.vv-typos li:last-child {
	margin-bottom: 0;
}

.vv-typos li span {
	display: block;
	font-size: 0.6875rem;
	font-weight: 400;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--vv-doux);
	margin-bottom: 0.1rem;
}

/* Bouton */

.vv-cta {
	display: block;
	text-align: center;
	padding: 0.9em 1.25em;
	font-size: 0.9375rem;
	font-weight: 500;
	text-decoration: none;
	color: inherit;
	border: 1px solid var(--vv-accent);
	border-radius: 3px;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.vv-cta:hover,
.vv-cta:focus-visible {
	background-color: var(--vv-accent);
	color: #fff;
}

/* --------------------------------------------------------------------------
   Tablette et mobile
   -------------------------------------------------------------------------- */

@media (max-width: 999px) {

	.vv-grille {
		grid-template-columns: 1fr;
	}

	.vv-aside-interieur {
		position: static;
		padding-top: 2.5rem;
		border-top: 2px solid var(--vv-accent);
	}

	.vv-palette li {
		flex: 0 1 80px;
	}
}

@media (max-width: 600px) {

	.vv-hero-media {
		aspect-ratio: 4 / 3;
	}

	.vv-accroche {
		max-width: none;
	}
}
/* Correction : aligner le titre du hero sur le conteneur du thème */

.vv-hero {
	width: auto;
	margin-left: 0;
}

.vv-hero-media {
	width: 100vw;
	margin-left: calc(50% - 50vw);
}

.vv-hero-contenu {
	max-width: none;
	margin: 0;
	padding: clamp(1.75rem, 4vw, 3rem) 0 0;
}
/* ==========================================================================
   Visual Vibes — Correctifs et bloc témoignage
   À coller à la suite de style.css, après le CSS du portfolio.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Correction : aligner le titre du hero sur le conteneur du thème
   Seule l'image déborde, le texte reste dans le flux normal.
   -------------------------------------------------------------------------- */

.vv-hero {
	width: auto;
	margin-left: 0;
}

.vv-hero-media {
	width: 100vw;
	margin-left: calc(50% - 50vw);
}

.vv-hero-contenu {
	max-width: none;
	margin: 0;
	padding: clamp(1.75rem, 4vw, 3rem) 0 0;
}

/* --------------------------------------------------------------------------
   Témoignage client
   Sorti de la grille : occupe désormais toute la largeur du conteneur,
   avec un fond teinté qui déborde jusqu'aux bords de la fenêtre.
   -------------------------------------------------------------------------- */

.vv-temoignage {
	position: relative;
	margin-top: clamp(2.5rem, 5vw, 3rem);
	padding-bottom: 0;
	border: 0;
	max-width: none;
}

/* Fond pleine largeur, posé derrière le contenu. */
.vv-temoignage::before {
	content: "";
	position: absolute;
	inset: 0;
	width: 100vw;
	margin-left: calc(50% - 50vw);
	background-color: color-mix(in srgb, var(--vv-accent) 6%, transparent);
	z-index: 0;
}

.vv-temoignage-interieur {
	position: relative;
	z-index: 1;
	max-width: 42ch;
}

/* Guillemet ouvrant en élément graphique. */
.vv-temoignage-interieur::before {
	content: "\201C";
	display: block;
	font-size: clamp(4rem, 9vw, 7rem);
	line-height: 0.75;
	color: var(--vv-accent);
	opacity: 0.35;
	margin-bottom: 0.03rem;
	font-family: Georgia, "Times New Roman", serif;
}

.vv-temoignage-citation {
	margin: 0 0 clamp(1.75rem, 4vw, 2.5rem);
	padding: 0;
	border: 0;
	font-size: clamp(1.25rem, 2.4vw, 1.75rem);
	line-height: 1.45;
	letter-spacing: -0.012em;
}

.vv-temoignage-citation p {
	margin: 0 0 0.85em;
}

.vv-temoignage-citation p:last-child {
	margin-bottom: 0;
}

/* Attribution */

.vv-temoignage-auteur {
	display: flex;
	align-items: center;
	gap: 0.9rem;
	padding-top: 1.5rem;
	padding-bottom: clamp(3rem, 7vw, 5rem);
	border-top: 1px solid var(--vv-trait);
}

.vv-temoignage-photo {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
}

.vv-temoignage-identite {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	line-height: 1.3;
}

.vv-temoignage-identite strong {
	font-size: 1rem;
	font-weight: 600;
}

.vv-temoignage-fonction {
	font-size: 0.75rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--vv-doux);
}

.vv-temoignage-interieur {
	max-width: 162ch;
}

.vv-temoignage-citation {
	font-size: clamp(1.125rem, 1.8vw, 1.4rem);
	line-height: 1.55;
}

/* Attribution alignée à droite */

.vv-temoignage-auteur {
	justify-content: flex-end;
	text-align: right;
}

.vv-temoignage-identite {
	align-items: flex-end;
}

@media (max-width: 600px) {

	.vv-temoignage-interieur {
		max-width: none;
	}
}
