:root {
	--op-color-primary: #0A66C2;
	--op-color-secondary: #111111;
	--op-color-text: #1A1A1A;
	--op-color-bg: #FFFFFF;
	--op-color-accent: #0A66C2;
	--op-font-titles: 'Poppins', sans-serif;
	--op-font-text: 'Inter', sans-serif;
	--op-font-accent: 'Playfair Display', serif;
	--op-size-h1: clamp(2rem, 1.0625rem + 3.125vw, 3.25rem);
	--op-size-h2: clamp(1.5rem, 0.9375rem + 1.875vw, 2.25rem);
	--op-size-text: clamp(1rem, 0.9531rem + 0.1563vw, 1.0625rem);
}

/*
 * Animations d'apparition : .op-reveal n'est masqué que si le script de tête a ajouté
 * « op-anim-ready » sur <html> (JavaScript actif, IntersectionObserver disponible, animations non
 * réduites par le visiteur). assets/js/onepage.js ajoute « is-visible » à l'entrée dans l'écran.
 */
@media (prefers-reduced-motion: no-preference) {
	.op-anim-ready .op-anim-fade .op-reveal,
	.op-anim-ready .op-anim-slide-up .op-reveal,
	.op-anim-ready .op-anim-zoom .op-reveal {
		opacity: 0;
		transition: opacity 0.6s ease-out, transform 0.6s ease-out;
		transition-delay: var(--op-reveal-delay, 0s);
	}

	.op-anim-ready .op-anim-slide-up .op-reveal {
		transform: translateY(24px);
	}

	.op-anim-ready .op-anim-zoom .op-reveal {
		transform: scale(0.94);
	}

	.op-anim-ready .op-reveal.is-visible {
		opacity: 1;
		transform: none;
	}
}

/*
 * Liens : les réglages globaux d'Oxygen d'isation.fr colorent tous les liens (a, a:hover) avec
 * --bde-links-color / --bde-links-color-hover (violet du site). a:hover (0,1,1) l'emporte sur les
 * classes des templates (0,1,0) : au survol, un bouton sans couleur de survol devenait violet.
 * Sur une one-page, les liens sans couleur propre prennent la couleur primaire de la page, et les
 * liens des templates gardent au survol la couleur de leur classe (règles ci-dessous, dans ce fichier
 * seulement : les classes globales isation-op* / opc / opd / ops ne sont pas modifiées).
 */
body.single-onepage {
	--bde-links-color: var(--op-color-primary);
	--bde-links-color-hover: var(--op-color-primary);
	/* Titres et texte sans police propre dans le template : polices de la one-page, pas celles
	 * d'isation.fr (même règle que la page convertie, pour que l'aperçu et le site livré concordent). */
	--bde-heading-font-family: var(--op-font-titles);
	--bde-body-font-family: var(--op-font-text);
	--bde-body-text-color: var(--op-color-text);
}

.isation-op-button:hover {
	color: var(--op-color-bg);
}

.isation-op-brand:hover {
	color: var(--op-color-primary);
}

.isation-op-header-brand:hover,
.isation-opc-header-brand:hover,
.isation-ops-header-brand:hover {
	color: inherit;
}

.isation-opc-btn-dark:hover,
.isation-ops-btn-dark:hover,
.isation-opd-brand-light:hover,
.op-float:hover {
	color: #fff;
}

.isation-opd-nl-btn:hover {
	color: var(--op-color-text);
}

.isation-bold-hero-01-logo:hover {
	color: var(--bold-ink);
}

/* Boutons flottants : appel / WhatsApp et retour en haut. */
.op-floating {
	position: fixed;
	z-index: 999;
	right: max(1rem, env(safe-area-inset-right));
	bottom: max(1rem, env(safe-area-inset-bottom));
	display: flex;
	flex-direction: column-reverse;
	align-items: center;
	gap: 0.75rem;
}

.op-float {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 3.25rem;
	height: 3.25rem;
	border-radius: 50%;
	background: var(--op-color-primary);
	color: #fff;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
	text-decoration: none;
	transition: transform 0.2s ease, opacity 0.2s ease, visibility 0.2s;
}

.op-float:hover {
	transform: translateY(-2px);
}

.op-float:focus-visible {
	outline: 3px solid var(--op-color-secondary);
	outline-offset: 3px;
}

.op-float-whatsapp {
	background: #25D366;
	color: #fff;
}

.op-back-top {
	width: 2.75rem;
	height: 2.75rem;
	background: var(--op-color-secondary);
}

/* Avec JavaScript, le bouton retour en haut n'apparaît qu'après un peu de défilement (onepage-back-to-top.js). */
.op-back-top.is-hidden {
	opacity: 0;
	visibility: hidden;
}

/* Sélecteurs renforcés : les pages converties en page Oxygen déclarent aussi .op-float en classe globale
 * Oxygen, chargée après ce fichier. */
@media (prefers-reduced-motion: reduce) {
	.op-floating .op-float {
		transition: none;
	}

	.op-floating .op-float:hover {
		transform: none;
	}
}

/* Formulaire de contact de démonstration. */
.op-contact-form {
	display: grid;
	gap: 1rem;
	font-family: var(--op-font-text);
	font-size: var(--op-size-text);
	color: var(--op-color-text);
}

.op-contact-form p {
	margin: 0;
}

.op-contact-field {
	display: grid;
	gap: 0.35rem;
}

.op-contact-field label {
	font-weight: 600;
}

.op-contact-field input,
.op-contact-field textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 0.7rem 0.85rem;
	border: 1px solid rgba(0, 0, 0, 0.25);
	border-radius: 6px;
	background: #fff;
	color: inherit;
	font: inherit;
}

.op-contact-field input:focus,
.op-contact-field textarea:focus {
	outline: 2px solid var(--op-color-primary);
	outline-offset: 1px;
}

.op-contact-submit {
	padding: 0.75rem 1.5rem;
	border: 0;
	border-radius: 6px;
	background: var(--op-color-primary);
	color: #fff;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.op-contact-status:not(:empty) {
	padding: 0.75rem 1rem;
	border-left: 4px solid var(--op-color-primary);
	border-radius: 4px;
	background: rgba(0, 0, 0, 0.05);
}

/* Carte Google Maps. */
.op-map {
	position: relative;
	width: 100%;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border-radius: 8px;
}

.op-map iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

/* Mots mis en valeur dans les titres (*mot*, templates avec « mot_en_valeur »). */
.op-accent {
	font-family: var(--op-font-accent), serif;
	font-style: italic;
	font-weight: 600;
	color: var(--op-color-secondary);
}

/* Texte en cercle du hero ([isation_onepage_badge]) : taille et position dans le template. */
.op-badge {
	width: 9rem;
	aspect-ratio: 1;
	color: var(--op-color-text);
}

.op-badge svg {
	display: block;
	width: 100%;
	height: 100%;
	overflow: visible;
	fill: currentColor;
	font-family: var(--op-font-text), sans-serif;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

@media (prefers-reduced-motion: no-preference) {
	.op-badge svg {
		animation: op-badge-spin 24s linear infinite;
	}
}

@keyframes op-badge-spin {
	to {
		transform: rotate(360deg);
	}
}

/* Icônes choisies dans une liste (Isation_Onepage_Icons) : taille par défaut, couleur du texte. */
.op-icon {
	display: block;
	width: 1.5rem;
	height: 1.5rem;
}

/* Texte réservé aux lecteurs d'écran. */
.op-sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

/* Newsletter de démonstration ([isation_onepage_newsletter]) : s'adapte à la couleur du texte de la section. */
.op-newsletter-form {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 1rem 2rem;
	font-family: var(--op-font-text), sans-serif;
}

.op-newsletter-input {
	flex: 1 1 16rem;
	max-width: 17rem;
	box-sizing: border-box;
	padding: 1rem 1.25rem;
	border: 1px solid;
	border-color: color-mix(in srgb, currentColor 35%, transparent);
	border-radius: 12px;
	background: transparent;
	color: inherit;
	font: inherit;
}

.op-newsletter-input::placeholder {
	color: inherit;
	opacity: 0.6;
}

.op-newsletter-submit {
	padding: 1rem 3rem;
	border: 0;
	border-radius: 12px;
	background: var(--op-color-bg);
	color: var(--op-color-text);
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

.op-newsletter-status {
	flex-basis: 100%;
	margin: 0;
	text-align: center;
}

/* Carrousels (onepage-carousel.js) : points de navigation. */
.op-carousel-dots {
	display: flex;
	justify-content: center;
	gap: 6px;
	margin-top: 16px;
}

.op-carousel-dot {
	width: 10px;
	height: 10px;
	padding: 0;
	background-color: color-mix(in srgb, var(--op-color-text) 15%, transparent);
	border: 0;
	border-radius: 50%;
	cursor: pointer;
}

.op-carousel-dot.is-active {
	background-color: var(--op-color-primary);
}

/* Tarifs (onepage-pricing.js) : seul le prix de la période choisie est affiché. */
.op-pricing:not(.is-yearly) .op-price-yearly,
.op-pricing.is-yearly .op-price:not(.no-yearly) .op-price-monthly,
.op-price.no-yearly .op-price-yearly {
	display: none;
}

/*
 * « Ce site vous plaît ? » (onepage-interet.js) : modale au design de l'assistant IA d'Isation
 * (classes globales isation-assistant-*), avec les polices d'Isation et non celles de la one-page,
 * et logo Isation en fin de page pour la rouvrir.
 */
.isop-interet {
	--op-font-text: var(--police-texte, system-ui, sans-serif);
	--op-font-titles: var(--police-titres, system-ui, sans-serif);
	font-family: var(--op-font-text), sans-serif;
}

/* Les classes isation-assistant-* fixent un display qui l'emporte sur l'attribut hidden. */
dialog.isop-interet [hidden] {
	display: none;
}

.isop-interet-astuce {
	margin: 0 0 16px;
	padding: 12px 16px;
	border-radius: 14px;
	background: var(--assistant-bulle-fond, #f8f5fe);
	color: var(--assistant-texte, #444444);
	font-size: 0.9375rem;
	line-height: 1.5;
}

.isop-interet-formulaire {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px 16px;
	margin: 0;
}

.isop-interet-champ {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 0;
}

.isop-interet-champ--large,
.isop-interet-alerte,
.isop-interet-envoyer {
	grid-column: 1 / -1;
}

.isop-interet-libelle {
	color: var(--noir, #111111);
	font-size: 0.875rem;
	font-weight: 600;
}

.isop-interet-requis {
	color: var(--assistant-accent, #9d6cf2);
}

.isop-interet-saisie {
	box-sizing: border-box;
	width: 100%;
	margin: 0;
	padding: 12px 16px;
	border: 1px solid var(--assistant-bulle-bordure, #e6dcfb);
	border-radius: 14px;
	background: var(--blanc, #ffffff);
	color: var(--noir, #111111);
	font: inherit;
	font-size: 1rem;
	line-height: 1.4;
}

textarea.isop-interet-saisie {
	resize: vertical;
}

.isop-interet-saisie:focus {
	border-color: var(--assistant-accent, #9d6cf2);
	outline: 3px solid color-mix(in srgb, var(--assistant-accent, #9d6cf2) 22%, transparent);
	outline-offset: 0;
}

.isop-interet-saisie.is-readonly {
	background: var(--assistant-bulle-fond, #f8f5fe);
	color: var(--assistant-texte, #444444);
	cursor: default;
}

.isop-interet-alerte {
	margin: 0;
	color: var(--rouge-erreur, #bd2b2b);
	font-size: 0.9375rem;
}

.isop-interet-envoyer {
	justify-self: start;
	gap: 10px;
}

.isop-interet-envoyer:disabled {
	opacity: 0.6;
	cursor: default;
}

.isop-interet-lien {
	color: var(--violet-texte, #7250b0);
	text-decoration: underline;
}

/* Logo Isation en fin de page. */
.isop-interet-signature {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 28px 16px 36px;
	background: var(--op-color-bg);
}

.isop-interet-logo {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	padding: 4px 8px 4px 18px;
	border: 1px solid color-mix(in srgb, var(--op-color-text) 14%, transparent);
	border-radius: 999px;
	background: #ffffff;
	color: #555555;
	font: 500 13px/1.2 system-ui, sans-serif;
	cursor: pointer;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.isop-interet-logo:hover,
.isop-interet-logo:focus-visible {
	border-color: #9d6cf2;
	box-shadow: 0 8px 20px -12px #9d6cf2;
}

.isop-interet-logo:focus-visible {
	outline: 3px solid color-mix(in srgb, #9d6cf2 35%, transparent);
	outline-offset: 2px;
}

.isop-interet-logo img {
	display: block;
	width: auto;
	height: 44px;
}

.isop-interet-logo-nom {
	padding: 8px 10px 8px 0;
	color: #111111;
	font-weight: 700;
	font-size: 16px;
}

/* « Faire des modifications » (onepage-modification.js), à côté du logo Isation. */
.isop-modifier-lien {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 54px;
	padding: 8px 20px;
	border: 1px solid #9d6cf2;
	border-radius: 999px;
	background: #9d6cf2;
	color: #ffffff;
	font: 600 14px/1.2 system-ui, sans-serif;
	text-decoration: none;
	transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.isop-modifier-lien:hover,
.isop-modifier-lien:focus-visible {
	background: #7f4fd6;
	box-shadow: 0 8px 20px -12px #9d6cf2;
	color: #ffffff;
}

.isop-modifier-lien:focus-visible {
	outline: 3px solid color-mix(in srgb, #9d6cf2 35%, transparent);
	outline-offset: 2px;
}

/* Bandeau après création ou modification. */
.isop-modif-bandeau {
	position: fixed;
	z-index: 99990;
	bottom: 20px;
	left: 20px;
	max-width: 400px;
	padding: 18px 44px 18px 20px;
	border-radius: 16px;
	background: #ffffff;
	box-shadow: 0 18px 40px -16px rgba(17, 17, 17, 0.45);
	color: #555555;
	font: 400 14px/1.5 system-ui, sans-serif;
}

.isop-modif-bandeau p {
	margin: 0 0 8px;
}

.isop-modif-bandeau-titre {
	color: #111111;
	font-weight: 700;
	font-size: 16px;
}

.isop-modif-bandeau-actions {
	margin-top: 12px;
}

.isop-modif-bandeau-copier {
	padding: 8px 16px;
	border: 1px solid #9d6cf2;
	border-radius: 999px;
	background: #ffffff;
	color: #5b2fb0;
	font: 600 13px/1.2 system-ui, sans-serif;
	cursor: pointer;
}

.isop-modif-bandeau-copier.is-done {
	border-color: #1e8e3e;
	color: #1e7a36;
}

.isop-modif-bandeau-fermer {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 30px;
	height: 30px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #f4f0fd;
	color: #111111;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
}

@media (max-width: 767px) {
	.isop-modif-bandeau {
		right: 16px;
		bottom: 16px;
		left: 16px;
		max-width: none;
	}

	.isop-interet-formulaire {
		grid-template-columns: 1fr;
	}

	.isop-interet-envoyer {
		justify-self: stretch;
	}
}
