/*
Theme Name: Peps by Padma
Theme URI: https://github.com/padmameufbadass/activite-creation-sites
Author: Padma
Description: Le site de Peps by Padma — création de sites pour les indépendantes qui se lancent. Thème en blocs : tout se modifie depuis Apparence → Éditeur, sans extension. Corail, pêche et prune, titres en Fraunces, texte en Outfit, polices hébergées sur le site (aucun appel à Google).
Version: 1.1.0
Requires at least: 6.6
Tested up to: 7.0
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: peps-by-padma
Tags: full-site-editing, block-patterns, one-column, custom-colors, wide-blocks
*/

/* -----------------------------------------------------------------------------
   Ce que theme.json ne sait pas dire. Tout le reste (couleurs, polices,
   espacements, boutons) vit dans theme.json, et se change depuis
   Apparence → Éditeur → Styles.
   -------------------------------------------------------------------------- */

html {
	scroll-behavior: smooth;
	scroll-padding-top: 5.5rem; /* les ancres ne passent pas sous l'en-tête collant */
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}

:focus-visible {
	outline: 3px solid var(--wp--preset--color--corail-fonce);
	outline-offset: 3px;
}

/* En-tête collant, légèrement translucide. */
.peps-entete {
	position: sticky;
	top: 0;
	z-index: 50;
	backdrop-filter: saturate(1.4) blur(10px);
	-webkit-backdrop-filter: saturate(1.4) blur(10px);
	background: rgba(255, 247, 242, 0.88) !important;
	border-bottom: 1px solid rgba(91, 42, 69, 0.08);
}

.admin-bar .peps-entete {
	top: var(--wp-admin--admin-bar--height, 32px);
}

@media (max-width: 600px) {
	.admin-bar .peps-entete {
		top: 0;
	}
}

.peps-logo {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	text-decoration: none !important;
	color: var(--wp--preset--color--encre) !important;
	font-family: var(--wp--preset--font-family--titres);
	font-weight: 600;
	font-size: 1.3rem;
	line-height: 1;
	white-space: nowrap;
}

.peps-logo img {
	width: 40px;
	height: auto;
}

.peps-logo em {
	font-style: italic;
	font-weight: 500;
	color: var(--wp--preset--color--corail-fonce);
}

/* Le mot souligné au surligneur, dans les titres. */
.peps-surligne {
	background: linear-gradient(transparent 62%, var(--wp--preset--color--soleil) 62%, var(--wp--preset--color--soleil) 92%, transparent 92%);
	padding: 0 0.1em;
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
}

.peps-accent {
	font-style: italic;
	font-weight: 500;
	color: var(--wp--preset--color--corail-fonce);
}

/* Petit surtitre en capitales. */
.peps-surtitre {
	text-transform: uppercase;
	letter-spacing: 0.14em;
	font-weight: 600;
}

/* Pastille « il reste X places ». */
.peps-pastille {
	display: inline-block;
	border-radius: 999px;
	padding: 0.35em 0.95em !important;
	font-weight: 600;
}

/* --- Téléphones du haut de page et des exemples ----------------------------- */

.peps-telephones {
	position: relative;
	min-height: 520px;
}

.is-style-telephone {
	margin: 0;
}

.is-style-telephone img {
	display: block;
	width: 100%;
	aspect-ratio: 390 / 780;
	object-fit: cover;
	object-position: top;
	border: 8px solid var(--wp--preset--color--encre) !important;
	border-radius: 34px !important;
	box-shadow: var(--wp--preset--shadow--forte);
	background: var(--wp--preset--color--blanc);
}

.peps-telephones .is-style-telephone {
	position: absolute;
	width: 56%;
	max-width: 260px;
}

.peps-telephones .is-style-telephone:nth-child(1) {
	left: 2%;
	top: 40px;
	transform: rotate(-6deg);
}

.peps-telephones .is-style-telephone:nth-child(2) {
	right: 2%;
	top: 0;
	transform: rotate(5deg);
	z-index: 2;
}

.peps-telephones::before {
	content: "";
	position: absolute;
	inset: 12% 8% 4% 8%;
	border-radius: 50%;
	background: radial-gradient(circle at 40% 40%, var(--wp--preset--color--soleil), var(--wp--preset--color--corail) 70%);
	opacity: 0.35;
	filter: blur(6px);
}

@media (max-width: 781px) {
	.peps-telephones {
		min-height: 400px;
		max-width: 420px;
		margin-inline: auto;
	}

	.peps-telephones .is-style-telephone {
		width: 48%;
	}

	.peps-telephones .is-style-telephone:nth-child(1) {
		left: 6%;
	}

	.peps-telephones .is-style-telephone:nth-child(2) {
		right: 6%;
	}
}

/* Sur un petit écran, le menu (☰) suffit : le bouton « Me contacter » y est. */
@media (max-width: 599px) {
	.peps-entete-bouton {
		display: none !important;
	}
}

/* Galerie d'exemples : défilement horizontal sur téléphone. */
.peps-exemples {
	display: grid !important;
	grid-template-columns: repeat(3, minmax(0, 250px));
	justify-content: center;
	gap: 2.5rem clamp(1.5rem, 5vw, 4rem);
}

.peps-exemples .is-style-telephone img {
	aspect-ratio: 390 / 700;
}

.peps-exemples > * {
	margin: 0 !important;
}

.peps-exemples figcaption {
	text-align: center;
	margin-top: 0.9rem !important;
	font-size: var(--wp--preset--font-size--petit);
	color: var(--wp--preset--color--gris);
}

.peps-exemples figcaption strong {
	display: block;
	color: var(--wp--preset--color--encre);
	font-size: 1rem;
}

@media (max-width: 781px) {
	.peps-exemples {
		grid-template-columns: none;
		grid-auto-flow: column;
		grid-auto-columns: 62%;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		padding-bottom: 1rem;
		-webkit-overflow-scrolling: touch;
	}

	.peps-exemples > * {
		scroll-snap-align: start;
	}
}

/* --- Cartes ------------------------------------------------------------------ */

.is-style-carte {
	background: var(--wp--preset--color--blanc);
	border-radius: var(--wp--custom--rayon--grand);
	box-shadow: var(--wp--preset--shadow--douce);
	padding: clamp(1.5rem, 3vw, 2.25rem);
}

.is-style-carte-vedette {
	background: var(--wp--preset--color--prune);
	color: var(--wp--preset--color--blanc);
	border-radius: var(--wp--custom--rayon--grand);
	box-shadow: var(--wp--preset--shadow--forte);
	padding: clamp(1.5rem, 3vw, 2.25rem);
	position: relative;
}

.is-style-carte-vedette :where(h2, h3, h4, p, li) {
	color: inherit;
}

.is-style-carte-vedette .wp-element-button,
.is-style-carte-vedette .wp-block-button__link {
	background: var(--wp--preset--color--soleil);
	color: var(--wp--preset--color--encre);
}

.is-style-carte-vedette .wp-element-button:hover,
.is-style-carte-vedette .wp-block-button__link:hover {
	background: var(--wp--preset--color--blanc);
	color: var(--wp--preset--color--prune);
}

/* Les colonnes de cartes ont la même hauteur, et le bouton se cale en bas. */
.peps-cartes > .wp-block-column {
	display: flex;
	flex-direction: column;
}

.peps-cartes > .wp-block-column > .wp-block-group {
	flex: 1;
	display: flex;
	flex-direction: column;
}

.peps-cartes .peps-bas {
	margin-top: auto !important;
}

.peps-prix {
	font-family: var(--wp--preset--font-family--titres);
	font-weight: 700;
	line-height: 1;
	letter-spacing: -0.02em;
}

.peps-prix small {
	font-family: var(--wp--preset--font-family--texte);
	font-size: 1rem;
	font-weight: 500;
	letter-spacing: 0;
	opacity: 0.8;
}

/* --- Listes à coches ------------------------------------------------------- */

.is-style-coches {
	list-style: none;
	padding-left: 0 !important;
}

.is-style-coches li {
	position: relative;
	padding-left: 1.9em;
	margin-bottom: 0.55em;
}

.is-style-coches li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.3em;
	width: 1.2em;
	height: 1.2em;
	border-radius: 50%;
	background: var(--wp--preset--color--peche) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B8392A' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 70% no-repeat;
}

.is-style-carte-vedette .is-style-coches li::before {
	background-color: var(--wp--preset--color--soleil);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235B2A45' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E");
}

/* --- Étapes numérotées ----------------------------------------------------- */

.peps-etape-numero {
	padding: 0 !important; /* un paragraphe coloré reçoit sinon des marges internes, et le rond devient ovale */
	display: inline-grid;
	place-items: center;
	width: 3rem;
	height: 3rem;
	border-radius: 50%;
	font-family: var(--wp--preset--font-family--titres);
	font-weight: 700;
	font-size: 1.35rem;
	line-height: 1;
}

/* --- FAQ --------------------------------------------------------------------- */

.wp-block-details summary {
	cursor: pointer;
	list-style: none;
	font-weight: 600;
	font-size: var(--wp--preset--font-size--moyen);
	padding-right: 2.5rem;
	position: relative;
}

.wp-block-details summary::-webkit-details-marker {
	display: none;
}

.wp-block-details summary::after {
	content: "+";
	position: absolute;
	right: 0.25rem;
	top: 50%;
	transform: translateY(-50%);
	width: 1.8rem;
	height: 1.8rem;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: var(--wp--preset--color--peche);
	color: var(--wp--preset--color--corail-fonce);
	font-size: 1.3rem;
	font-weight: 500;
	line-height: 1;
	transition: transform 0.2s ease;
}

.wp-block-details[open] summary::after {
	transform: translateY(-50%) rotate(45deg);
}

.wp-block-details > :not(summary) {
	color: var(--wp--preset--color--gris);
}

/* --- Documents à télécharger ---------------------------------------------- */

.peps-document {
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.peps-document:hover {
	transform: translateY(-2px);
	box-shadow: var(--wp--preset--shadow--forte);
}

.peps-document-icone {
	padding: 0 !important;
	flex: none;
	display: grid;
	place-items: center;
	width: 3.25rem;
	height: 3.25rem;
	border-radius: 14px;
	font-weight: 700;
	font-size: 0.8rem;
	letter-spacing: 0.06em;
}

/* --- Décor ----------------------------------------------------------------- */

.peps-vague {
	position: relative;
	overflow: hidden;
}

.peps-vague::after {
	content: "";
	position: absolute;
	width: 520px;
	height: 520px;
	right: -180px;
	top: -200px;
	border-radius: 50%;
	background: var(--wp--preset--color--rose);
	opacity: 0.55;
	z-index: 0;
	pointer-events: none;
}

.peps-vague > * {
	position: relative;
	z-index: 1;
}

/* Pied de page : liens clairs sur fond prune. */
.peps-pied a {
	color: var(--wp--preset--color--blanc);
}

.peps-pied a:hover {
	color: var(--wp--preset--color--soleil);
}

/* Le menu d'ouverture sur téléphone prend les couleurs du site. */
.wp-block-navigation__responsive-container.is-menu-open {
	background: var(--wp--preset--color--creme) !important;
	color: var(--wp--preset--color--encre) !important;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	font-size: 1.35rem;
	font-family: var(--wp--preset--font-family--titres);
}

/* Le lien « Me contacter » du menu ne sert que sur téléphone, où le bouton est masqué. */
@media (min-width: 600px) {
	.wp-block-navigation .peps-lien-mobile {
		display: none !important;
	}
}

/* Liste sans puces, pour les liens du pied de page. */
.peps-liste-simple {
	list-style: none;
	padding-left: 0;
	line-height: 2;
}
