/**
 * Oslo & Co — Vitrine
 *
 * Ce fichier ne contient QUE ce que theme.json ne sait pas exprimer :
 * position sticky, overlays, rotations, motifs de fond, points de rupture.
 * Couleurs, typo et espacements viennent des presets (--wp--preset--*).
 *
 * Les tokens du design system utilisent `oklch(from …)` (support navigateur
 * encore partiel) : on les traduit ici en rgba() statiques équivalents.
 */

/* -------------------------------------------------------------------------
 * 0. Assises
 * ---------------------------------------------------------------------- */

/* Le blockGap global s’applique aussi entre l’en-tête, le contenu et le pied,
   ce qui creusait une bande de fond sous le header sur toutes les pages.
   Chaque section porte déjà ses propres marges : on remet l’écart à zéro au
   premier niveau uniquement. */
:root .wp-site-blocks > * {
	margin-block-start: 0;
	margin-block-end: 0;
}

/* WordPress n’impose pas border-box : sans lui, les champs de formulaire
   (padding + bordure en plus d’une largeur héritée à 100%) débordaient de
   leur conteneur sur mobile — calendrier de réservation et select "Ce dont
   vous avez besoin" compris. */
*,
*::before,
*::after {
	box-sizing: border-box;
}

/* -------------------------------------------------------------------------
 * 1. En-tête
 * ---------------------------------------------------------------------- */

/* Le flou vit sur ::before, pas sur .oc-header : un backdrop-filter posé
   directement sur l’en-tête devient le containing block des descendants en
   position fixed (spec CSS), ce qui piège le menu mobile plein écran dans
   la hauteur de l’en-tête au lieu du viewport. */
.oc-header {
	position: sticky;
	top: 0;
	z-index: 50;
	border-bottom: 1px solid var(--wp--custom--border--subtle);
}

.oc-header::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background-color: rgba(248, 245, 240, 0.9);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
}

.oc-header__inner {
	min-height: var(--wp--custom--header--height);
}

.oc-header__logo {
	margin: 0;
}

.oc-header__logo img {
	display: block;
	height: 58px;
	width: auto;
	border-radius: 0;
}

.oc-header .wp-block-navigation {
	--navigation-layout-justification-setting: flex-end;
}

.oc-header .wp-block-navigation .wp-block-navigation-item.current-menu-item > a {
	color: var(--wp--preset--color--dark);
	font-weight: 700;
}

/* Menu mobile : le bouton hamburger reprend la couleur de marque. */
.oc-header .wp-block-navigation__responsive-container-open,
.oc-header .wp-block-navigation__responsive-container-close {
	color: var(--wp--preset--color--dark);
}

/* -------------------------------------------------------------------------
 * 2. Éléments transverses
 * ---------------------------------------------------------------------- */

/* Sur-titre : « QUI SUIS-JE », « TÉMOIGNAGES »… */
.is-style-oc-eyebrow {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: var(--wp--custom--tracking--eyebrow);
	text-transform: uppercase;
	color: var(--wp--preset--color--secondary);
	line-height: 1.2;
}

/* Bouton secondaire posé sur une photo ou un fond sombre. */
.wp-block-button.is-style-oc-outline-light > .wp-block-button__link {
	background-color: transparent;
	border-color: rgba(248, 245, 240, 0.6);
	color: var(--wp--preset--color--light);
	padding: 14px 26px;
}

.wp-block-button.is-style-oc-outline-light > .wp-block-button__link:hover,
.wp-block-button.is-style-oc-outline-light > .wp-block-button__link:focus {
	background-color: rgba(248, 245, 240, 0.12);
	border-color: var(--wp--preset--color--light);
	color: var(--wp--preset--color--light);
}

/* Tailles de boutons du design system (sm 36px / md 44px / lg 52px). */
.wp-block-button.oc-btn-sm > .wp-block-button__link {
	padding: 8px 16px;
	font-size: 14px;
}

.wp-block-button.oc-btn-lg > .wp-block-button__link {
	padding: 15px 28px;
	font-size: 18px;
}

/* Carte blanche générique (témoignages, encarts). */
.wp-block-group.is-style-oc-card {
	background-color: var(--wp--preset--color--white);
	border: 1px solid var(--wp--custom--border--subtle);
	border-radius: var(--wp--custom--radius--xl);
	box-shadow: var(--wp--preset--shadow--sm);
}

/* Pastille d’information : « Assurée RC pro », « Certifiée ACACED »… */
.oc-badge {
	display: inline-block;
	padding: 4px 12px;
	border-radius: var(--wp--custom--radius--pill);
	background-color: rgba(216, 196, 168, 0.35);
	color: var(--wp--preset--color--dark);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: var(--wp--custom--tracking--tight);
	line-height: 1.5;
}

/* Largeurs de ligne, reprises telles quelles du design. Les blocs centrés
   sont recentrés puisque la mise en page contrainte pose déjà les marges. */
.oc-measure-18ch { max-width: 18ch; }
.oc-measure-46 { max-width: 46ch; }
.oc-measure-48 { max-width: 48ch; }
.oc-measure-52 { max-width: 52ch; }
.oc-measure-56 { max-width: 56ch; }

/* La mise en page « contrainte » de Gutenberg pose `margin-inline: auto` sur
   ses enfants : tout bloc limité par une mesure se retrouverait centré. On ne
   le recentre que s’il est explicitement en texte centré. */
[class*="oc-measure-"]:not(.has-text-align-center) {
	margin-inline: 0;
}

.has-text-align-center[class*="oc-measure-"] {
	margin-inline: auto;
}

/* Lien « En savoir plus → » */
.oc-link-arrow {
	font-weight: 600;
	color: var(--wp--preset--color--secondary);
	transition: transform var(--wp--custom--duration--fast) var(--wp--custom--ease--standard);
}

.oc-link-arrow:hover {
	color: var(--wp--preset--color--dark);
}

/* -------------------------------------------------------------------------
 * 3. Héros
 * ---------------------------------------------------------------------- */

.oc-hero {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-height: max(82vh, 620px);
	overflow: hidden;
	background-size: cover;
	background-position: 50% 50%;
	background-repeat: no-repeat;
}

/* Voile dégradé pour garder le texte lisible quelle que soit la photo. */
.oc-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(47, 51, 54, 0.15) 0%, rgba(47, 51, 54, 0.55) 100%);
	pointer-events: none;
}

.oc-hero > * {
	position: relative;
	z-index: 1;
}

/* Le `margin-inline: auto` posé par la mise en page contrainte annule
   l’étirement du conteneur flex : sans width, la colonne se réduirait à la
   largeur de son plus large enfant au lieu de tenir ses 1200px. */
.oc-hero__inner {
	width: 100%;
}

.oc-hero__badge {
	display: inline-block;
	align-self: flex-start;
	padding: 8px 18px;
	border-radius: var(--wp--custom--radius--pill);
	background-color: rgba(248, 245, 240, 0.9);
	color: var(--wp--preset--color--secondary);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	line-height: 1.2;
}

.oc-hero__title {
	max-width: 14ch;
	text-wrap: pretty;
}

.oc-hero__lead {
	max-width: 46ch;
	color: rgba(248, 245, 240, 0.9);
	text-wrap: pretty;
}

/* -------------------------------------------------------------------------
 * 4. Section « Qui suis-je » — portrait incliné
 * ---------------------------------------------------------------------- */

/* Carte photo inclinée : le bas de la carte (56px) sert de cartouche à la
   légende, posée en absolu comme dans le design. */
.oc-portrait {
	position: relative;
	background-color: var(--wp--preset--color--white);
	border-radius: var(--wp--custom--radius--lg);
	box-shadow: var(--wp--preset--shadow--lg);
	padding: 16px 16px 56px;
	transform: rotate(-3deg);
}

.oc-portrait .wp-block-image {
	margin: 0;
}

.oc-portrait img {
	display: block;
	width: 100%;
	height: 408px;
	object-fit: cover;
	border-radius: var(--wp--custom--radius--md);
}

/* Variante « Qui suis-je » : carte de 520px au lieu de 480px. */
.oc-portrait--lg img {
	height: 448px;
}

.oc-portrait--lg .oc-portrait__caption {
	bottom: 24px;
}

.oc-portrait__caption {
	position: absolute;
	bottom: 34px;
	left: 0;
	right: 0;
	margin: 0;
	text-align: center;
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
	color: var(--wp--preset--color--secondary);
}

/* -------------------------------------------------------------------------
 * 5. Section « Comment ça marche »
 * ---------------------------------------------------------------------- */

.oc-step__num {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	margin: 0 auto;
	border-radius: 50%;
	font-size: 24px;
	font-weight: 700;
	line-height: 1;
	color: var(--wp--preset--color--dark);
	background-color: rgba(168, 188, 216, 0.45);
}

.oc-step--2 .oc-step__num {
	background-color: var(--wp--preset--color--accent);
}

.oc-step--1 .oc-step__num {
	transform: rotate(-4deg);
}

.oc-step--2 .oc-step__num {
	transform: rotate(3deg);
}

.oc-step--3 .oc-step__num {
	transform: rotate(-2deg);
}

/* -------------------------------------------------------------------------
 * 6. Témoignages
 * ---------------------------------------------------------------------- */

/* Les cartes remplissent la hauteur de leur colonne : la ligne « avatar +
   nom » reste alignée d’une carte à l’autre quelle que soit la citation.
   `align-items: stretch` annule le `flex-start` du layout flex vertical
   de Gutenberg, sinon les enfants se réduiraient à leur contenu. */
.oc-testimonial {
	height: 100%;
	align-items: stretch;
}

.oc-testimonial__stars {
	color: var(--wp--preset--color--accent);
	font-size: 18px;
	letter-spacing: 3px;
	line-height: 1;
}

.oc-testimonial__quote {
	flex: 1;
	text-wrap: pretty;
}

.oc-testimonial__avatar {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 44px;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background-color: rgba(168, 188, 216, 0.4);
	color: var(--wp--preset--color--secondary);
	font-size: 16px;
	font-weight: 700;
	line-height: 1;
}

.oc-testimonial__pet {
	color: var(--wp--custom--text--muted);
}

/* -------------------------------------------------------------------------
 * 6 bis. Qui suis-je — garanties, récit
 * ---------------------------------------------------------------------- */

/* Pastille carrée portant l’icône de marque, en tête de carte. */
.oc-icon-tile {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 52px;
	height: 52px;
	margin: 0;
	border-radius: 16px;
}

.oc-icon-tile--lg {
	width: 56px;
	height: 56px;
	border-radius: 18px;
}

.oc-icon-tile--a {
	background-color: rgba(168, 188, 216, 0.4);
}

.oc-icon-tile--b {
	background-color: rgba(216, 196, 168, 0.5);
}

.oc-icon-tile img {
	width: 28px;
	height: 28px;
	border-radius: 0;
}

.oc-icon-tile--lg img {
	width: 30px;
	height: 30px;
}

.oc-guarantee {
	height: 100%;
	align-items: stretch;
}

/* Colonne de texte du récit « Pourquoi Oslo&Co ». */
.oc-prose {
	font-size: clamp(16px, 1.3vw, 17px);
	line-height: 1.75;
}

.oc-quote.wp-block-quote {
	margin: 0;
	padding: 28px 34px;
	border: 0;
	border-radius: 20px;
	background-color: rgba(168, 188, 216, 0.18);
	color: var(--wp--preset--color--dark);
	font-size: clamp(18px, 1.6vw, 20px);
	font-style: normal;
	font-weight: 600;
	line-height: 1.5;
	text-align: left;
	text-wrap: pretty;
}

.oc-quote.wp-block-quote p {
	margin: 0;
	font-size: inherit;
	line-height: inherit;
}

/* -------------------------------------------------------------------------
 * 6 ter. Services — grille des formules
 * ---------------------------------------------------------------------- */

.oc-grid-2 {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 28px;
}

.oc-grid-2 > * {
	margin-block: 0;
}

.oc-service {
	height: 100%;
	align-items: stretch;
	transition:
		transform var(--wp--custom--duration--base) var(--wp--custom--ease--standard),
		box-shadow var(--wp--custom--duration--base) var(--wp--custom--ease--standard);
}

.oc-service:hover {
	transform: translateY(-6px);
	box-shadow: var(--wp--preset--shadow--lg);
}

.oc-service__head {
	align-items: center;
}

.oc-service__pricing {
	align-items: center;
	flex: 0 0 auto;
}

.oc-service__price {
	font-size: clamp(30px, 2.8vw, 36px);
	font-weight: 700;
	line-height: 1;
	color: var(--wp--preset--color--dark);
}

.oc-service__unit {
	font-size: 15px;
	color: var(--wp--custom--text--muted);
}

.oc-service__includes {
	align-items: stretch;
	margin-top: auto;
	padding-top: 20px;
	border-top: 1px solid var(--wp--custom--border--subtle);
}

/* Puce « ✓ » en pseudo-élément : elle reste hors du texte lu par les
   lecteurs d’écran, contrairement à un caractère saisi dans le paragraphe. */
.oc-check {
	display: flex;
	align-items: center;
	gap: 10px;
}

.oc-check::before {
	content: "✓";
	color: var(--wp--preset--color--secondary);
	font-weight: 700;
}

/* Variante liste. `.oc-check` vise un paragraphe : appliquée à un <ul>, son
   display:flex alignerait les items côte à côte et ne rendrait qu’une seule
   puce pour toute la liste. Ici le flex vit sur chaque <li>. */
.oc-check-list {
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding-left: 0;
}

.oc-check-list > li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
}

.oc-check-list > li::before {
	content: "✓";
	flex-shrink: 0;
	color: var(--wp--preset--color--secondary);
	font-weight: 700;
}

.oc-footnote {
	color: var(--wp--custom--text--muted);
}

/* -------------------------------------------------------------------------
 * 6 quater. Galerie — polaroïds et mosaïque
 * ---------------------------------------------------------------------- */

.oc-polaroids {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 32px;
}

.oc-polaroid {
	flex: 1 1 0;
	min-width: 190px;
	max-width: 250px;
	margin-block: 0;
	padding: 12px 12px 44px;
	border-radius: var(--wp--custom--radius--md);
	background-color: var(--wp--preset--color--white);
	box-shadow: var(--wp--preset--shadow--md);
	transition: transform var(--wp--custom--duration--base) var(--wp--custom--ease--standard);
}

.oc-polaroid:nth-child(1) { transform: rotate(-4deg); }
.oc-polaroid:nth-child(2) { transform: rotate(2deg); }
.oc-polaroid:nth-child(3) { transform: rotate(-2deg); }
.oc-polaroid:nth-child(4) { transform: rotate(3deg); }

.oc-polaroid:hover {
	transform: rotate(0deg) scale(1.04);
}

.oc-polaroid .wp-block-image {
	margin: 0;
}

.oc-polaroid img {
	display: block;
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
	border-radius: var(--wp--custom--radius--sm);
}

.oc-polaroid__caption {
	margin: 14px 0 0;
	text-align: center;
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	color: var(--wp--preset--color--secondary);
}

.oc-mosaic {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	grid-auto-rows: 260px;
	gap: 20px;
}

.oc-mosaic__item {
	margin: 0;
	height: 100%;
}

/* La première photo occupe deux rangées, comme dans le design. */
.oc-mosaic__item:first-child {
	grid-row: span 2;
}

.oc-mosaic__item img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 18px;
}

/* -------------------------------------------------------------------------
 * 6 quinquies. Contact — coordonnées, encart, FAQ, formulaire
 * ---------------------------------------------------------------------- */

.oc-contact-info {
	align-items: stretch;
	font-size: clamp(16px, 1.3vw, 17px);
}

.oc-muted {
	color: var(--wp--custom--text--muted);
}

.oc-note {
	border-radius: 18px;
	background-color: rgba(168, 188, 216, 0.18);
}

.oc-faq {
	align-items: stretch;
}

.oc-faq__item.wp-block-details {
	border: 1px solid var(--wp--custom--border--subtle);
	border-radius: 18px;
	background-color: var(--wp--preset--color--white);
	overflow: hidden;
}

.oc-faq__item > summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 22px 26px;
	cursor: pointer;
	font-size: clamp(16px, 1.3vw, 17px);
	font-weight: 600;
	color: var(--wp--preset--color--dark);
	list-style: none;
}

.oc-faq__item > summary::-webkit-details-marker {
	display: none;
}

.oc-faq__item > summary::after {
	content: "+";
	flex-shrink: 0;
	font-size: 22px;
	font-weight: 400;
	line-height: 1;
	color: var(--wp--custom--text--muted);
}

.oc-faq__item[open] > summary::after {
	content: "−";
}

.oc-faq__item > :not(summary) {
	margin: 0;
	padding: 0 26px 22px;
	font-size: 15px;
	line-height: 1.6;
	color: var(--wp--preset--color--secondary);
}

/* Formulaires (contact, demande de réservation) — reprennent les composants
   Input/Button du design system, WordPress n’ayant pas de bloc formulaire
   natif. */
.oc-form {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.oc-form__field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 0;
}

.oc-form__label {
	font-size: 13px;
	font-weight: 600;
	color: var(--wp--preset--color--dark);
}

.oc-form__input {
	height: 44px;
	padding: 0 16px;
	border: 1px solid var(--wp--custom--border--default);
	border-radius: var(--wp--custom--radius--sm);
	background-color: var(--wp--preset--color--white);
	font-family: inherit;
	font-size: 15px;
	color: var(--wp--preset--color--dark);
}

.oc-form__textarea {
	height: auto;
	padding: 12px 16px;
	line-height: 1.55;
	resize: vertical;
}

.oc-form__input:focus {
	outline: none;
	border-color: var(--wp--preset--color--secondary);
	box-shadow: 0 0 0 3px rgba(78, 102, 117, 0.15);
}

.oc-form__honeypot {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.oc-form__submit {
	height: 44px;
	border: 1px solid var(--wp--preset--color--dark);
	border-radius: var(--wp--custom--radius--pill);
	background-color: var(--wp--preset--color--dark);
	color: var(--wp--preset--color--light);
	font-family: inherit;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: background-color var(--wp--custom--duration--fast) var(--wp--custom--ease--standard);
}

.oc-form__submit:hover {
	background-color: var(--wp--custom--shade--secondary);
	border-color: var(--wp--custom--shade--secondary);
}

.oc-form__notice {
	margin: 0;
	font-size: 14px;
	font-weight: 600;
}

.oc-form__notice--ok {
	color: var(--wp--preset--color--secondary);
}

.oc-form__notice--error {
	color: var(--wp--preset--color--error);
}

/* Le <select> natif : même boîte que .oc-form__input, chevron dessiné en
   background pour ne pas dépendre de l’apparence du système. */
.oc-form__select {
	appearance: none;
	padding-right: 42px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%234E6675' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 16px center;
	background-size: 12px 8px;
	cursor: pointer;
}

.oc-form__optional {
	font-weight: 400;
	color: var(--wp--custom--text--muted);
}

.oc-form .oc-footnote {
	margin: 0;
	font-size: 13px;
	line-height: 1.5;
}

/* Le JS masque le champ « race » et le récapitulatif des jours avec l’attribut
   `hidden`. Sans cette règle, le `display:flex` du composant l’emporterait sur
   le `display:none` de la feuille du navigateur et les deux resteraient
   visibles. */
.oc-form [hidden] {
	display: none;
}

/* -------------------------------------------------------------------------
 * 6 bis. Demande de réservation — calendrier
 *
 * Les disponibilités viennent de l’API de l’espace client. Trois états, et un
 * seul verrouille : un jour « chargé » (full) reste cliquable, c’est la
 * petsitter qui tranche. Voir assets/js/booking-calendar.js.
 * ---------------------------------------------------------------------- */

.oc-booking__step {
	display: flex;
	flex-direction: column;
	gap: 18px;
	margin: 0;
	padding: 0;
	border: 0;
	/* Un <fieldset> a un min-width: min-content implicite : sans ce reset, la
	   grille du calendrier (7 colonnes non compressibles) empêchait tout le
	   step de rétrécir sous ~330px et débordait du formulaire sur mobile. */
	min-width: 0;
}

.oc-booking__step + .oc-booking__step {
	padding-top: 24px;
	border-top: 1px solid var(--wp--custom--border--subtle);
}

.oc-booking__legend {
	padding: 0;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: var(--wp--custom--tracking--eyebrow);
	text-transform: uppercase;
	color: var(--wp--custom--text--muted);
}

.oc-calendar {
	padding: 20px;
	border: 1px solid var(--wp--custom--border--subtle);
	border-radius: var(--wp--custom--radius--md);
	background-color: var(--wp--preset--color--white);
}

.oc-calendar__loading {
	margin: 0;
	font-size: 14px;
	color: var(--wp--custom--text--muted);
	text-align: center;
}

.oc-calendar__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 14px;
}

.oc-calendar__month {
	margin: 0;
	font-size: 16px;
	font-weight: 600;
	color: var(--wp--preset--color--dark);
}

.oc-calendar__nav {
	width: 34px;
	height: 34px;
	border: 1px solid var(--wp--custom--border--default);
	border-radius: var(--wp--custom--radius--pill);
	background: none;
	font-size: 18px;
	line-height: 1;
	color: var(--wp--preset--color--secondary);
	cursor: pointer;
	transition: background-color var(--wp--custom--duration--fast) var(--wp--custom--ease--standard);
}

.oc-calendar__nav:hover:not(:disabled) {
	background-color: rgba(168, 188, 216, 0.2);
}

.oc-calendar__nav:disabled {
	opacity: 0.35;
	cursor: default;
}

.oc-calendar__grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 4px;
}

.oc-calendar__weekday {
	padding-bottom: 6px;
	font-size: 12px;
	font-weight: 600;
	text-align: center;
	color: var(--wp--custom--text--muted);
}

.oc-calendar__day {
	aspect-ratio: 1;
	/* Un <button> a un min-width: min-content implicite : sans ce reset, les
	   7 colonnes de la grille (1fr) refusaient de descendre sous la largeur
	   de leur contenu et le calendrier débordait sur mobile. */
	min-width: 0;
	border: 1px solid transparent;
	border-radius: var(--wp--custom--radius--sm);
	background-color: oklch(92.5% 0.084 155.995);
	font-family: inherit;
	font-size: 14px;
	color: var(--wp--preset--color--dark);
	cursor: pointer;
	transition:
		background-color var(--wp--custom--duration--fast) var(--wp--custom--ease--standard),
		border-color var(--wp--custom--duration--fast) var(--wp--custom--ease--standard);
}

.oc-calendar__day:hover:not(:disabled) {
	border-color: var(--wp--preset--color--secondary);
}

/* Journée chargée : annoncée, mais toujours demandable. */
.oc-calendar__day--full {
	background-color: oklch(92.4% 0.12 95.746);
}

.oc-calendar__day--closed {
	background-color: transparent;
	color: rgba(47, 51, 54, 0.25);
	text-decoration: line-through;
	cursor: default;
}

.oc-calendar__day.is-selected {
	background-color: var(--wp--preset--color--secondary);
	border-color: var(--wp--preset--color--secondary);
	font-style: normal;
	font-weight: 600;
	color: var(--wp--preset--color--light);
	box-shadow: none;
}

.oc-calendar__legend {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 14px;
	margin: 0;
	font-size: 13px;
	color: var(--wp--custom--text--muted);
}

.oc-calendar__key {
	width: 12px;
	height: 12px;
	border-radius: 4px;
	flex-shrink: 0;
}

.oc-calendar__key--free {
	background-color: oklch(92.5% 0.084 155.995);
}

.oc-calendar__key--full {
	background-color: oklch(92.4% 0.12 95.746);
}

.oc-calendar__key--closed {
	background-color: rgba(47, 51, 54, 0.12);
}

.oc-calendar__selection {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.oc-calendar__selection-title {
	margin: 0;
	font-size: 13px;
	font-weight: 600;
	color: var(--wp--preset--color--dark);
}

.oc-calendar__chips {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Une puce est un bouton : la cliquer retire le jour. */
.oc-calendar__chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 12px;
	border: 1px solid var(--wp--custom--border--default);
	border-radius: var(--wp--custom--radius--pill);
	background-color: var(--wp--preset--color--white);
	font-family: inherit;
	font-size: 13px;
	color: var(--wp--preset--color--secondary);
	cursor: pointer;
}

.oc-calendar__chip::after {
	content: "×";
	font-size: 15px;
	line-height: 1;
}

.oc-calendar__chip:hover {
	border-color: var(--wp--preset--color--error);
	color: var(--wp--preset--color--error);
}

/* Condition particulière d’un jour chargé, reprise sous sa puce : seul
   endroit fiable en tactile, le survol du jour dans la grille n’existant
   pas sur mobile. La colonne (voir .oc-calendar__chips) garantit qu’elle
   reste juste sous sa puce, sans ambiguïté sur le jour concerné. */
.oc-calendar__chip-note {
	margin: -2px 0 0 12px;
	font-size: 12px;
	font-style: italic;
	color: var(--wp--preset--color--secondary);
}

/* -------------------------------------------------------------------------
 * 7. Bandeau CTA + pied de page
 * ---------------------------------------------------------------------- */

.oc-cta {
	background-color: var(--wp--preset--color--dark);
	background-size: 181px;
	background-blend-mode: soft-light;
}

.oc-cta__title {
	max-width: 20ch;
	margin-inline: auto;
}

.oc-cta__title--wide {
	max-width: 22ch;
}

.oc-cta__lead {
	max-width: 48ch;
	margin-inline: auto;
	color: rgba(248, 245, 240, 0.75);
	text-wrap: pretty;
}

.oc-footer-bar {
	border-top: 1px solid rgba(248, 245, 240, 0.12);
	background-color: var(--wp--preset--color--dark);
}

.oc-footer-bar {
	color: rgba(248, 245, 240, 0.6);
}

.oc-footer-bar a {
	color: rgba(248, 245, 240, 0.7);
}

.oc-footer-bar a:hover {
	color: var(--wp--preset--color--light);
}

.oc-footer-bar .oc-footer-bar__app,
.oc-footer-bar .oc-footer-bar__app:hover {
	color: var(--wp--preset--color--accent);
	font-weight: 600;
}

.oc-footer-bar__logo {
	margin: 0;
}

.oc-footer-bar__logo img {
	display: block;
	height: 26px;
	width: auto;
	border-radius: 0;
}

/* -------------------------------------------------------------------------
 * 8. Points de rupture
 * ---------------------------------------------------------------------- */

@media (max-width: 1024px) {
	.oc-portrait img {
		height: 340px;
	}

	.oc-portrait--lg img {
		height: 360px;
	}

	.oc-mosaic {
		grid-auto-rows: 220px;
	}

	.oc-service__head {
		flex-wrap: wrap;
	}
}

@media (max-width: 781px) {
	.oc-header__logo img {
		height: 44px;
	}

	.oc-hero {
		min-height: 78vh;
		background-attachment: inherit!important;
	}

	.oc-hero__title,
	.oc-hero__lead {
		max-width: none;
	}

	.oc-portrait {
		transform: none;
	}

	.oc-step__num {
		transform: none !important;
	}

	.oc-footer-bar {
		max-width: 100dvw;
	}

	.oc-footer-bar__inner {
		display: flex;
		flex-direction: column;
		text-align: center;
	}

	.oc-grid-2 {
		grid-template-columns: 1fr;
	}

	/* Même spécificité que les règles :nth-child de rotation, placée après :
	   les polaroïds se redressent sans !important. */
	.oc-polaroid:nth-child(n) {
		transform: none;
	}

	.oc-mosaic {
		grid-template-columns: repeat(2, 1fr);
		grid-auto-rows: 200px;
	}
}

@media (max-width: 600px) {
	.oc-mosaic {
		grid-template-columns: 1fr;
	}

	.oc-mosaic__item:first-child {
		grid-row: auto;
	}

	/* Sous 600px, tout padding inline hérité du desktop (space-10, cartes à
	   30/40px…) est plafonné à 16px : ça rend au contenu (calendrier, select
	   de prestation…) la largeur qui lui manquait pour rester utilisable. */
	.wp-block-group.alignfull,
	.oc-service,
	.oc-guarantee,
	.oc-testimonial,
	.oc-note,
	.oc-form-card {
		padding-left: var(--wp--preset--spacing--space-4) !important;
		padding-right: var(--wp--preset--spacing--space-4) !important;
	}

	.oc-calendar {
		padding-left: var(--wp--preset--spacing--space-4);
		padding-right: var(--wp--preset--spacing--space-4);
	}
}

/* -------------------------------------------------------------------------
 * 9. Accessibilité
 * ---------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
	.oc-portrait,
	.oc-step__num {
		transform: none;
	}

	*,
	*::before,
	*::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
	}
}

:where(a:focus-visible),
:where(button:focus-visible) {
	outline: 2px solid var(--wp--preset--color--secondary);
	outline-offset: 2px;
}

.oc-cta :where(a:focus-visible),
.oc-footer-bar :where(a:focus-visible) {
	outline-color: var(--wp--preset--color--accent);
}
