/*
 * Pages de démonstration : barre AC Digitalya, message de démonstration
 * et petits états interactifs. Le reste du style est dans chaque fichier de démo.
 */
body.ac-demo { margin: 0; padding-bottom: 96px; -webkit-font-smoothing: antialiased; }
body.ac-demo img, body.ac-demo video { max-width: 100%; }
body.ac-demo :focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

/* Barre flottante « Démo conceptuelle » */
.ac-barre-demo {
	position: fixed; left: 50%; bottom: 24px; z-index: 9999; transform: translateX(-50%);
	display: flex; align-items: center; gap: 22px; max-width: calc(100vw - 32px); box-sizing: border-box;
	padding: 12px 12px 12px 24px; border-radius: 999px; background: rgba(26, 5, 9, .86); backdrop-filter: blur(14px);
	color: #FFFFFF; box-shadow: 0 20px 50px rgba(26, 5, 9, .35);
	font-family: 'DM Sans', system-ui, sans-serif; font-size: 15px; line-height: 1.3;
}
.ac-barre-demo a { color: #FFFFFF; text-decoration: none; font-weight: 500; white-space: nowrap; }
.ac-barre-demo a:hover { color: #FFB0C2; }
.ac-barre-demo__sep { width: 1px; height: 22px; background: rgba(255, 255, 255, .25); }
.ac-barre-demo__label { font-family: 'DM Mono', ui-monospace, monospace; font-size: 13px; color: #FFB0C2; white-space: nowrap; }
.ac-barre-demo .ac-barre-demo__cta { background: #D9416B; font-weight: 600; padding: 12px 22px; border-radius: 999px; }
.ac-barre-demo .ac-barre-demo__cta:hover { background: #8E1638; color: #FFFFFF; }
@media (max-width: 760px) {
	.ac-barre-demo { gap: 12px; padding: 8px 8px 8px 16px; font-size: 14px; bottom: 12px; }
	.ac-barre-demo__sep, .ac-barre-demo__label { display: none; }
	.ac-barre-demo .ac-barre-demo__cta { padding: 10px 16px; }
}
@media (max-width: 420px) {
	.ac-barre-demo__retour { display: inline-flex; align-items: center; min-height: 44px; }
	.ac-barre-demo__long { display: none; }
}

/* Bandeau du haut : lien de retour vers le site AC Digitalya */
.ac-demo-bandeau__retour { color: inherit !important; text-decoration: underline; text-underline-offset: 3px; font-weight: 600; margin-left: 10px; white-space: nowrap; }
.ac-demo-bandeau__retour:hover { opacity: .8; }

/* Message « ceci est une démonstration » */
.ac-demo-toast {
	position: fixed; left: 50%; bottom: 96px; z-index: 10000; transform: translateX(-50%);
	max-width: min(520px, calc(100vw - 32px)); box-sizing: border-box; margin: 0;
	padding: 16px 20px; border-radius: 14px; background: #FFFFFF; color: #1A0509;
	box-shadow: 0 24px 60px rgba(26, 5, 9, .3); font-family: 'DM Sans', system-ui, sans-serif; font-size: 15px; line-height: 1.5;
}

/* Aucune démo ne doit faire défiler la page horizontalement. */
body.ac-demo main { overflow-x: clip; }
/* Atelier Éclat : bulles des points de la photo, sur téléphone */
@media (max-width: 760px) {
	.ac-demo .eclat-tip { white-space: normal !important; width: 190px; }
	.ac-demo .eclat-pin[style*="left: 68%"] .eclat-tip,
	.ac-demo .eclat-pin[style*="left: 44%"] .eclat-tip { left: auto !important; right: 30px; }
}

/* Nacré Hair : en-tête sur téléphone (texte puis photos) */
@media (max-width: 760px) {
	.ac-demo--nacre-hair section[aria-label="Accueil"] { flex-direction: column; height: auto !important; padding-top: 40px !important; padding-bottom: 40px !important; gap: 32px !important; }
	.ac-demo--nacre-hair section[aria-label="Accueil"] > div:first-child { flex: none !important; width: 100%; }
	.ac-demo--nacre-hair section[aria-label="Accueil"] > div:last-child { flex: none !important; width: 100%; height: 360px; }
}

/* Maison Lumière : en-tête sur téléphone (texte puis photo encadrée) */
@media (max-width: 760px) {
	.ac-demo--maison-lumiere section[aria-label="Accueil"] { flex-direction: column; align-items: stretch !important; min-height: 0 !important; padding: 56px 0 48px; }
	.ac-demo--maison-lumiere section[aria-label="Accueil"] > div:nth-child(2) { position: relative !important; order: 2; right: auto !important; top: auto !important; width: auto !important; height: 440px !important; margin: 40px 24px 0; }
}

/* Éléments rendus cliquables par le script */
.ac-demo [data-clic] { cursor: pointer; }
.ac-demo [data-masque] { display: none !important; }
@media (prefers-reduced-motion: reduce) { .ac-demo * { scroll-behavior: auto !important; } }
