/* sections.css — block styles for the section families (auto-merged from per-page generators).
   Tokens only: --wp--preset--*. Each .is-style-vv-* is registered in functions.php. */

/* ==================== from index ==================== */
/* Page index (accueil) — new block styles (tokens only, flat selectors) */

/* Héro d’accueil — core/cover : plein écran, contenu centré (900px), halo sauge, ombres de texte */
.wp-block-cover.is-style-vv-hero-home { text-align: center; }
.wp-block-cover.is-style-vv-hero-home .wp-block-cover__inner-container { max-width: 900px; margin-left: auto; margin-right: auto; }
.wp-block-cover.is-style-vv-hero-home .wp-block-cover__background::before {
	content: '';
	position: absolute;
	inset: 0;
	background: radial-gradient(circle at 30% 50%, color-mix(in srgb, var(--wp--preset--color--primary-sage) 10%, transparent) 0%, transparent 50%);
	pointer-events: none;
}
.wp-block-cover.is-style-vv-hero-home h1 { font-size: 4.5rem; text-shadow: 0 2px 20px color-mix(in srgb, var(--wp--preset--color--white) 80%, transparent); }
.wp-block-cover.is-style-vv-hero-home p { text-shadow: 0 1px 10px color-mix(in srgb, var(--wp--preset--color--white) 80%, transparent); }
/* Scroll indicator (mouse outline + falling dot), pure CSS so it stays out of the content.
   Remove it by adding the extra class "vv-no-scroll-hint" to the Cover block (Advanced > Additional CSS class). */
.wp-block-cover.is-style-vv-hero-home:not(.vv-no-scroll-hint)::after {
	content: ""; position: absolute; left: 50%; bottom: 3rem; z-index: 2;
	width: 30px; height: 50px; box-sizing: border-box;
	border: 2px solid var(--wp--preset--color--primary-sage); border-radius: 15px;
	background: radial-gradient(circle 4px at 50% var(--vv-dot-y, 12px), var(--wp--preset--color--primary-sage) 98%, transparent) no-repeat;
	animation: vv-bounce 2s infinite, vv-scroll-dot 1.5s linear infinite;
	pointer-events: none;
}
@keyframes vv-bounce {
	0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
	40% { transform: translateX(-50%) translateY(-10px); }
	60% { transform: translateX(-50%) translateY(-5px); }
}
@property --vv-dot-y { syntax: "<length>"; inherits: false; initial-value: 12px; }
@keyframes vv-scroll-dot { from { --vv-dot-y: 12px; opacity: 1; } to { --vv-dot-y: 30px; opacity: 0.35; } }
@media (prefers-reduced-motion: reduce) { .wp-block-cover.is-style-vv-hero-home::after { animation: none; } }
.editor-styles-wrapper .wp-block-cover.is-style-vv-hero-home::after { animation: none; }
.wp-block-cover.is-style-vv-hero-home .wp-block-cover__inner-container > p:not(.has-primary-sage-color) { opacity: 0.95; }
@media (max-width: 768px) {
	.wp-block-cover.is-style-vv-hero-home h1 { font-size: 2.5rem; }
}

/* Bouton contour (style cœur is-style-outline) — look .btn-secondary de la maquette */
/* specificity 0,4,0 to beat core's :not(.has-text-color)/:not(.has-background) rules */
.wp-block-button.is-style-outline > .wp-block-button__link.wp-element-button {
	background: color-mix(in srgb, var(--wp--preset--color--white) 90%, transparent);
	color: var(--wp--preset--color--deep-earth);
	border: 2px solid var(--wp--preset--color--primary-sage);
	padding: 1rem 2.5rem; /* core outline style shrinks padding to .667em 1.333em */
	box-shadow: none;
	transition: all 0.4s ease;
}
.wp-block-button.is-style-outline > .wp-block-button__link.wp-element-button:hover {
	background: var(--wp--preset--color--primary-sage);
	color: var(--wp--preset--color--white);
	transform: translateY(-3px);
}

/* Titre de catégorie — core/heading : trait terracotta 60px centré sous le texte */
.is-style-vv-category-title { position: relative; padding-bottom: 1rem; }
.is-style-vv-category-title::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 60px;
	height: 2px;
	background: var(--wp--preset--color--accent-terracotta);
}

/* Carte de service — core/column : blanche, photo 220px, barre terracotta au survol */
.is-style-vv-service-card {
	background: var(--wp--preset--color--white);
	position: relative;
	overflow: hidden;
	box-shadow: var(--wp--preset--shadow--card);
	transition: all 0.5s ease;
}
.is-style-vv-service-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 4px;
	height: 0;
	background: var(--wp--preset--color--accent-terracotta);
	transition: height 0.5s ease;
	z-index: 2;
}
.is-style-vv-service-card:hover { transform: translateY(-10px); box-shadow: var(--wp--preset--shadow--lift); }
.is-style-vv-service-card:hover::before { height: 100%; }
.is-style-vv-service-card .wp-block-image { margin: 0; }
.is-style-vv-service-card .wp-block-image img { width: 100%; height: 220px; object-fit: cover; display: block; }
.is-style-vv-service-card h3 { font-size: 1.8rem; }
.is-style-vv-service-card p { opacity: 0.8; }

/* Carte de service large — core/group : photo 180px, contenu en ligne */
.is-style-vv-service-card-wide {
	background: var(--wp--preset--color--white);
	position: relative;
	overflow: hidden;
	box-shadow: var(--wp--preset--shadow--card);
	transition: all 0.5s ease;
}
.is-style-vv-service-card-wide::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 4px;
	height: 0;
	background: var(--wp--preset--color--accent-terracotta);
	transition: height 0.5s ease;
	z-index: 2;
}
.is-style-vv-service-card-wide:hover { transform: translateY(-10px); box-shadow: var(--wp--preset--shadow--lift); }
.is-style-vv-service-card-wide:hover::before { height: 100%; }
.is-style-vv-service-card-wide .wp-block-image { margin: 0; }
.is-style-vv-service-card-wide .wp-block-image img { width: 100%; height: 180px; object-fit: cover; display: block; }
.is-style-vv-service-card-wide h3 { min-width: 200px; }
.is-style-vv-service-card-wide p { flex: 1; opacity: 0.8; }
@media (max-width: 768px) {
	.is-style-vv-service-card-wide h3 { min-width: auto; }
	.is-style-vv-service-card-wide p { flex: 1 1 100%; }
}

/* Lien de service — core/button : lien texte terracotta « En savoir plus → » */
.wp-block-button.is-style-vv-service-link > .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--accent-terracotta);
	padding: 0;
	box-shadow: none;
	border: 0;
	font-weight: 600;
	letter-spacing: 0;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	transition: gap 0.3s ease;
}
.wp-block-button.is-style-vv-service-link > .wp-block-button__link:hover {
	background: transparent;
	color: var(--wp--preset--color--accent-terracotta);
	box-shadow: none;
	gap: 1rem;
}

/* Badge « Nouveau » — core/paragraph : pastille terracotta en haut à droite de la carte */
p.is-style-vv-new-badge {
	position: absolute;
	top: 1rem;
	right: 1rem;
	z-index: 10;
	width: max-content;
	padding: 0.5rem 1.2rem;
	background: var(--wp--preset--color--accent-terracotta);
	color: var(--wp--preset--color--white);
	border-radius: 30px;
	font-size: 0.85rem;
	font-weight: 600;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	box-shadow: var(--wp--preset--shadow--button);
	margin: 0;
}

/* Visuel podcast — core/image : coins 20px, ombre portée, hauteur 400px */
.wp-block-image.is-style-vv-featured-visual { margin: 0; border-radius: 20px; overflow: hidden; box-shadow: var(--wp--preset--shadow--lift); }
.wp-block-image.is-style-vv-featured-visual img { width: 100%; height: 400px; object-fit: cover; display: block; border-radius: 20px; }

/* ==================== from accompagnement-deuil ==================== */
/* =========================================================================
   Page accompagnement-deuil — new block styles (register with register_block_style)
   ========================================================================= */

/* core/group — .important-note : gold gradient callout with white text */
.is-style-vv-note {
	background: linear-gradient(135deg, var(--wp--preset--color--light-gold) 0%, color-mix(in srgb, var(--wp--preset--color--light-gold) 85%, var(--wp--preset--color--muted-olive)) 100%);
	border-radius: 8px;
	box-shadow: 0 10px 30px color-mix(in srgb, var(--wp--preset--color--light-gold) 30%, transparent);
}
.is-style-vv-note p { opacity: 0.95; }
.is-style-vv-note strong {
	display: block;
	font-size: 1.3rem;
	margin-bottom: 1rem;
}

/* core/list — check list with gold ticks (content-box variant) */
ul.is-style-vv-check-list-gold { list-style: none; padding-left: 0; }
ul.is-style-vv-check-list-gold li {
	position: relative;
	padding-left: 2rem;
	margin-bottom: 1rem;
	font-size: 1.1rem;
	line-height: 1.8;
	opacity: 0.9;
}
ul.is-style-vv-check-list-gold li::before {
	content: '✓';
	position: absolute;
	left: 0;
	color: var(--wp--preset--color--light-gold);
	font-weight: bold;
	font-size: 1.2rem;
}

/* core/group — .steps container (resets the step counter) */
.is-style-vv-steps { counter-reset: vv-step; }

/* core/group — .step : white card, big Cormorant number on the left */

/* ==================== from coupe-energetique ==================== */
/* =========================================================================
   Page "Coupe énergétique" — new block styles (register with register_block_style)
   ========================================================================= */

/* Terracotta emphasis inside the intro text card (maquette: .content-box strong) */
.is-style-vv-card strong { color: var(--wp--preset--color--accent-terracotta); }

/* Durée de prestation — block style on core/paragraph (maquette: .duration) */
p.is-style-vv-duration {
	font-size: 0.95rem;
	line-height: 1.6;
	font-weight: 600;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--wp--preset--color--primary-sage);
}

/* Carte témoignage — block style on core/column (maquette: .testimonial-card) */
.is-style-vv-testimonial {
	background: var(--wp--preset--color--white);
	padding: 2.5rem;
	border-radius: 8px;
	box-shadow: var(--wp--preset--shadow--soft);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.is-style-vv-testimonial:hover { transform: translateY(-3px); box-shadow: var(--wp--preset--shadow--card); }
.is-style-vv-testimonial > p { opacity: 0.85; }

/* Initiale avatar — block style on core/paragraph (maquette: .avatar) */
p.is-style-vv-avatar {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 50px;
	height: 50px;
	flex-shrink: 0;
	margin: 0;
	border-radius: 50%;
	background: var(--wp--preset--color--primary-sage);
	color: var(--wp--preset--color--white);
	font-size: 1.5rem;
	font-weight: 600;
	line-height: 1;
}

/* Lien "avis Google" — block style on core/paragraph (maquette: .google-link) */
p.is-style-vv-google-link { opacity: 0.8; }
p.is-style-vv-google-link a {
	color: var(--wp--preset--color--accent-terracotta);
	text-decoration: none;
	font-weight: 600;
	transition: color 0.3s ease;
}
p.is-style-vv-google-link a:hover { text-decoration: underline; }

/* Coordonnées (téléphone / e-mail) — block style on core/paragraph (maquette: .contact-info a) */
p.is-style-vv-contact-link a {
	font-size: 1.2rem;
	font-weight: 600;
	color: var(--wp--preset--color--accent-terracotta);
	text-decoration: none;
	transition: color 0.3s ease;
}
p.is-style-vv-contact-link a:hover { color: var(--wp--preset--color--deep-earth); }

/* ==================== from coupe-itinerante ==================== */
/* =========================================================================
   Page styles first defined by coupe-itinerante (register with register_block_style)
   ========================================================================= */

/* core/paragraph — the hero badge is a vv-pill with a palette background; the
   preset class must win over p.is-style-vv-pill's default sage background. */
p.is-style-vv-pill.has-accent-terracotta-background-color { background: var(--wp--preset--color--accent-terracotta); }

/* core/group — "Carte de texte (accents terracotta)": the white text card whose
   <strong> are tinted terracotta (.content-box strong in the maquette). */
.is-style-vv-card-accent {
	background: var(--wp--preset--color--white);
	border-radius: 8px;
	box-shadow: var(--wp--preset--shadow--card);
	padding: 4rem 3.5rem;
}
.is-style-vv-card-accent p { opacity: 0.9; }
.is-style-vv-card-accent strong { color: var(--wp--preset--color--accent-terracotta); }
.is-style-vv-card-accent ul.is-style-vv-check-list li { padding-left: 2rem; margin-bottom: 1rem; opacity: 0.9; }
.is-style-vv-card-accent ul.is-style-vv-check-list li::before { font-size: 1.2rem; }

/* core/group — "Encadré mis en avant" (.highlight-box): sage tinted panel, left rule. */
.is-style-vv-highlight {
	background: linear-gradient(135deg, color-mix(in srgb, var(--wp--preset--color--primary-sage) 10%, transparent) 0%, color-mix(in srgb, var(--wp--preset--color--muted-olive) 10%, transparent) 100%);
	border-left: 4px solid var(--wp--preset--color--primary-sage);
	border-radius: 5px;
	padding: 2rem;
}
.is-style-vv-highlight p { margin-bottom: 0; }

/* core/group — "Étape numérotée" (.step): white card; grid puts the number
   paragraph in column 1 and every other child (h3, p …) in column 2. */
.is-style-vv-step {
	display: grid;
	grid-template-columns: 60px 1fr;
	column-gap: 2rem;
	align-items: start;
	background: var(--wp--preset--color--white);
	border-radius: 8px;
	box-shadow: var(--wp--preset--shadow--soft);
	padding: 2.5rem;
}
.is-style-vv-step > :not(.is-style-vv-step-number) { grid-column: 2; min-width: 0; }
.is-style-vv-step h3 { color: var(--wp--preset--color--deep-earth); }
.is-style-vv-step p:not(.is-style-vv-step-number) { opacity: 0.85; }
/* Compatibility with steps that carry no number paragraph (accompagnement-deuil
   uses a CSS counter): draw the counter in column 1 for those only. */
.is-style-vv-step { counter-increment: vv-step; }
.is-style-vv-step:not(:has(> .is-style-vv-step-number))::before {
	content: counter(vv-step);
	grid-column: 1;
	grid-row: 1 / span 9;
	font-family: var(--wp--preset--font-family--cormorant);
	font-size: 3rem;
	font-weight: 300;
	line-height: 1;
	color: var(--wp--preset--color--primary-sage);
}

/* core/paragraph — "Numéro d’étape" (.step-number): sage circle, white serif numeral. */
p.is-style-vv-step-number {
	grid-column: 1;
	grid-row: 1 / span 9;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 60px;
	height: 60px;
	margin: 0;
	border-radius: 50%;
	background: var(--wp--preset--color--primary-sage);
	color: var(--wp--preset--color--white);
	font-family: var(--wp--preset--font-family--cormorant);
	font-size: 2rem;
	font-weight: 300;
	line-height: 1;
}

@media (max-width: 768px) {
	.is-style-vv-step { grid-template-columns: 1fr; row-gap: 1rem; }
	.is-style-vv-step > :not(.is-style-vv-step-number) { grid-column: 1; }
	p.is-style-vv-step-number { grid-row: auto; }
}

/* ==================== from danse-5-rythmes ==================== */
/* Page danse-5-rythmes — new block styles (tokens only, flat selectors) */

/* Carte rythme — core/group : tuile blanche centrée avec grand numéro */
.is-style-vv-rhythm {
	background: var(--wp--preset--color--white);
	padding: 3rem 2.5rem;
	border-radius: 8px;
	box-shadow: var(--wp--preset--shadow--soft);
	text-align: center;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.is-style-vv-rhythm:hover {
	transform: translateY(-5px);
	box-shadow: var(--wp--preset--shadow--card);
}
.is-style-vv-rhythm p:last-child { opacity: 0.85; }

/* Encart translucide — core/group : boîte blanche à 10 % sur bandeau dégradé */
.is-style-vv-glass {
	background: color-mix(in srgb, var(--wp--preset--color--white) 10%, transparent);
	padding: 3rem;
	border-radius: 8px;
	text-align: left;
	max-width: 700px;
	margin-left: auto;
	margin-right: auto;
}
.is-style-vv-glass ul.is-style-vv-check-list li {
	padding-left: 2rem;
	margin-bottom: 1.2rem;
	font-size: 1.1rem;
	line-height: 1.8;
	opacity: 1;
}
.is-style-vv-glass ul.is-style-vv-check-list li::before {
	color: var(--wp--preset--color--soft-white);
	font-size: 1.3rem;
}

/* ==================== from podcast ==================== */
/* =========================================================================
   Page « Podcast » — new block styles (tokens only)
   ========================================================================= */

/* --- Spotify button (core/button) ---------------------------------------- */
.wp-block-button.is-style-vv-spotify .wp-block-button__link {
	background: var(--wp--preset--color--spotify-green);
	color: var(--wp--preset--color--white);
	box-shadow: 0 10px 30px color-mix(in srgb, var(--wp--preset--color--spotify-green) 35%, transparent);
	transition: all 0.4s ease;
}
.wp-block-button.is-style-vv-spotify .wp-block-button__link:hover {
	background: color-mix(in srgb, var(--wp--preset--color--spotify-green) 85%, var(--wp--preset--color--deep-earth));
	transform: translateY(-3px);
	box-shadow: 0 15px 40px color-mix(in srgb, var(--wp--preset--color--spotify-green) 45%, transparent);
}

/* --- Instagram button (core/button) — warm gradient from palette tokens -- */
.wp-block-button.is-style-vv-instagram .wp-block-button__link {
	background: linear-gradient(45deg, var(--wp--preset--color--light-gold), var(--wp--preset--color--accent-terracotta));
	color: var(--wp--preset--color--white);
	box-shadow: 0 10px 30px color-mix(in srgb, var(--wp--preset--color--accent-terracotta) 30%, transparent);
	transition: all 0.4s ease;
}
.wp-block-button.is-style-vv-instagram .wp-block-button__link:hover {
	transform: translateY(-3px);
	box-shadow: 0 15px 40px color-mix(in srgb, var(--wp--preset--color--accent-terracotta) 40%, transparent);
}

/* --- « Écouter cet épisode » text link (core/button) --------------------- */
.wp-block-button.is-style-vv-episode-listen .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--spotify-green);
	padding: 0;
	box-shadow: none;
	font-weight: 600;
	font-size: 0.98rem;
	letter-spacing: 0;
	transition: color 0.3s ease;
}
.wp-block-button.is-style-vv-episode-listen .wp-block-button__link:hover {
	color: color-mix(in srgb, var(--wp--preset--color--spotify-green) 85%, var(--wp--preset--color--deep-earth));
}

/* --- Episode card (core/group, flex row) --------------------------------- */
.is-style-vv-episode {
	position: relative;
	background: var(--wp--preset--color--white);
	border-radius: 8px;
	box-shadow: var(--wp--preset--shadow--soft);
	padding: 2.5rem;
	transition: all 0.3s ease;
}
.is-style-vv-episode:hover {
	box-shadow: 0 15px 40px color-mix(in srgb, var(--wp--preset--color--deep-earth) 12%, transparent);
	transform: translateY(-3px);
}
.is-style-vv-episode > .wp-block-group { flex: 1; min-width: 0; }
.is-style-vv-episode h3 { font-family: var(--wp--preset--font-family--cormorant); font-weight: 400; }
.is-style-vv-episode > .wp-block-group > p:not(.has-primary-sage-color):not(.has-accent-terracotta-color) { opacity: 0.85; }

/* Episode number (core/paragraph) */
p.is-style-vv-episode-number { min-width: 70px; text-align: center; margin: 0; }

/* « Dernier épisode » badge (core/paragraph) — floats over the card border */
p.is-style-vv-latest-badge {
	position: absolute;
	top: -14px;
	left: 2.5rem;
	margin: 0;
	background: var(--wp--preset--color--spotify-green);
	color: var(--wp--preset--color--white);
	padding: 0.35rem 1.2rem;
	border-radius: 20px;
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	line-height: 1.6;
}

/* --- Fixes needed by this page on existing styles ------------------------ */
/* pill: the preset background must beat p.is-style-vv-pill { background } */
p.is-style-vv-pill.has-spotify-green-background-color { background: var(--wp--preset--color--spotify-green); }
/* pill centred inside the hero (maquette: inline-block in a centred hero) */
.wp-block-cover.is-style-vv-hero p.is-style-vv-pill { margin-left: auto; margin-right: auto; }
/* maquette: .content-box strong { color: terracotta } 

/* --- Responsive ----------------------------------------------------------- */
@media (max-width: 768px) {
	.is-style-vv-episode { flex-direction: column; gap: 1rem !important; }
	p.is-style-vv-episode-number { text-align: left; font-size: 2rem !important; }
	p.is-style-vv-latest-badge { left: 1.5rem; }
}
